src/main/java/io/mantisrx/api/push/PushConnectionDetails.java
public static String determineTarget(final String uri) {
        String sanitized = uri.replaceFirst("^/(api/v1/)?(jobconnectbyid|jobconnectbyname|jobstatus|jobs/schedulingInfo|jobClusters/discoveryInfoStream|metrics)/", "");
        QueryStringDecoder queryStringDecoder = new QueryStringDecoder(sanitized);
        return queryStringDecoder.path();
    }
/**
     * Determines the target for a push connection request. Typically a job name or id.
     *
     * @param uri Request URI as returned by Netty's requestUri() methods. Expects leading slash.
     * @return The target requested by the URI.
     */
Determines the target for a push connection request. Typically a job name or id.
@param uri Request URI as returned by Netty's requestUri() methods. Expects leading slash.
@return The target requested by the URI.
Determines the target for a push connection request . Typically a job name or id . @param uri Request URI as returned by Netty ' s requestUri () methods . Expects leading slash . @return The target requested by the URI .
public static String determineTarget(final String uri) {
        String sanitized = uri.replaceFirst("^/(api/v1/)?(jobconnectbyid|jobconnectbyname|jobstatus|jobs/schedulingInfo|jobClusters/discoveryInfoStream|metrics)/", "");
        QueryStringDecoder queryStringDecoder = new QueryStringDecoder(sanitized);
        return queryStringDecoder.path();
    }
public static String determineTarget ( final String uri ) { String sanitized = uri . replaceFirst ( "^/(api/v1/)?(jobconnectbyid|jobconnectbyname|jobstatus|jobs/schedulingInfo|jobClusters/discoveryInfoStream|metrics)/" , "" ) ; QueryStringDecoder queryStringDecoder = new QueryStringDecoder ( sanitized ) ; return queryStringDecoder . path ( ) ; }
Determines the target for a push connection request.
Determines the target for a push connection request .