jube/src/main/java/io/fabric8/jube/main/Main.java
public static String createContextPath(String uri) {
        String contextPath = trimUpToLastIndexOf(uri, '!', '.');
        contextPath = trimFromAfterLastIndexOf(contextPath, '/', '\\');
        if (contextPath.startsWith("hawtio-swag")) {
            contextPath = "hawtio-swagger";
        } else if (contextPath.startsWith("hawtio-") || contextPath.startsWith("console-")) {
            contextPath = "hawtio";
        }
        return contextPath;
    }
/**
     * Returns the web context path for the given URL
     */
Returns the web context path for the given URL
Returns the web context path for the given URL
public static String createContextPath(String uri) {
        String contextPath = trimUpToLastIndexOf(uri, '!', '.');
        contextPath = trimFromAfterLastIndexOf(contextPath, '/', '\\');
        if (contextPath.startsWith("hawtio-swag")) {
            contextPath = "hawtio-swagger";
        } else if (contextPath.startsWith("hawtio-") || contextPath.startsWith("console-")) {
            contextPath = "hawtio";
        }
        return contextPath;
    }
public static String createContextPath ( String uri ) { String contextPath = trimUpToLastIndexOf ( uri , '!' , '.' ) ; contextPath = trimFromAfterLastIndexOf ( contextPath , '/' , '\\' ) ; if ( contextPath . startsWith ( "hawtio-swag" ) ) { contextPath = "hawtio-swagger" ; } else if ( contextPath . startsWith ( "hawtio-" ) || contextPath . startsWith ( "console-" ) ) { contextPath = "hawtio" ; } return contextPath ; }
Returns the web context path for the given URL
Returns the web context path for the given URL