private void _handleRequest(final WebApplicationContext localContext, ContainerRequest request) { for (ContainerRequestFilter f : filterFactory.getRequestFilters()) { request = f.filter(request); localContext.setContainerRequest(request); } /** * The matching algorithm currently works from an absolute path. * The path is required to be in encoded form. */ StringBuilder path = new StringBuilder(); path.append("/").append(request.getPath(false)); if (!resourceConfig.getFeature(ResourceConfig.FEATURE_MATCH_MATRIX_PARAMS)) { path = stripMatrixParams(path); } if (!rootsRule.accept(path, null, localContext)) { throw new NotFoundException(request.getRequestUri()); } }
private void _handleRequest(final WebApplicationContext localContext, ContainerRequest request) { for (ContainerRequestFilter f : filterFactory.getRequestFilters()) { request = f.filter(request); localContext.setContainerRequest(request); } /** * The matching algorithm currently works from an absolute path. * The path is required to be in encoded form. */ StringBuilder path = new StringBuilder(); path.append("/").append(request.getPath(false)); if (!resourceConfig.getFeature(ResourceConfig.FEATURE_MATCH_MATRIX_PARAMS)) { path = stripMatrixParams(path); } if (!rootsRule.accept(path, null, localContext)) { throw new NotFoundException(request.getRequestUri()); } }
private void _handleRequest(final WebApplicationContext localContext, ContainerRequest request) { for (ContainerRequestFilter f : filterFactory.getRequestFilters()) { request = f.filter(request); localContext.setContainerRequest(request); } /** * The matching algorithm currently works from an absolute path. * The path is required to be in encoded form. */ StringBuilder path = new StringBuilder(); path.append("/").append(request.getPath(false)); if (!resourceConfig.getFeature(ResourceConfig.FEATURE_MATCH_MATRIX_PARAMS)) { path = stripMatrixParams(path); } if (!rootsRule.accept(path, null, localContext)) { throw new NotFoundException(request.getRequestUri()); } }