@Test public void testGetQueryParametersDecoded() throws Exception { UriInfo ui; MultivaluedMap<String, String> p; ui = createContext("/widgets/10?x+=+1%20&%20y+=+2", "GET"); p = ui.getQueryParameters(); assertEquals(" 1 ", p.getFirst("x ")); assertEquals(" 2", p.getFirst(" y ")); ui = createContext("/widgets/10?x=1&y=1+%2B+2", "GET"); p = ui.getQueryParameters(true); assertEquals("1", p.getFirst("x")); assertEquals("1 + 2", p.getFirst("y")); ui = createContext("/widgets/10?x=1&y=1+%26+2", "GET"); p = ui.getQueryParameters(true); assertEquals("1", p.getFirst("x")); assertEquals("1 & 2", p.getFirst("y")); ui = createContext("/widgets/10?x=1&y=1+%7C%7C+2", "GET"); p = ui.getQueryParameters(true); assertEquals("1", p.getFirst("x")); assertEquals("1 || 2", p.getFirst("y")); }
@Override public MultivaluedMap<String, String> getQueryParameters() { return getQueryParameters(true); }
UriRoutingContext implements RoutingContext { @Override public MultivaluedMap<String, String> getQueryParameters() { return getQueryParameters(true); } }
UriRoutingContext implements RoutingContext { @Override public MultivaluedMap<String, String> getQueryParameters() { return getQueryParameters(true); } UriRoutingContext(final ContainerRequest requestContext); }
UriRoutingContext implements RoutingContext { @Override public MultivaluedMap<String, String> getQueryParameters() { return getQueryParameters(true); } UriRoutingContext(final ContainerRequest requestContext); @Override void pushMatchResult(final MatchResult matchResult); @Override void pushMatchedResource(final Object resource); @Override Object peekMatchedResource(); @Override void pushMatchedLocator(final ResourceMethod resourceLocator); @Override void pushLeftHandPath(); @Override void pushTemplates(final UriTemplate resourceTemplate, final UriTemplate methodTemplate); @Override String getFinalMatchingGroup(); @Override LinkedList<MatchResult> getMatchedResults(); @Override void setEndpoint(final Endpoint endpoint); @Override Endpoint getEndpoint(); @Override void setMatchedResourceMethod(final ResourceMethod resourceMethod); @Override void pushMatchedRuntimeResource(final RuntimeResource runtimeResource); @Override void pushLocatorSubResource(final Resource subResourceFromLocator); @Override URI getAbsolutePath(); @Override UriBuilder getAbsolutePathBuilder(); @Override URI getBaseUri(); @Override UriBuilder getBaseUriBuilder(); @Override List<Object> getMatchedResources(); @Override List<String> getMatchedURIs(); @Override List<String> getMatchedURIs(final boolean decode); @Override String getPath(); @Override String getPath(final boolean decode); @Override MultivaluedMap<String, String> getPathParameters(); @Override MultivaluedMap<String, String> getPathParameters(final boolean decode); @Override List<PathSegment> getPathSegments(); @Override List<PathSegment> getPathSegments(final boolean decode); @Override MultivaluedMap<String, String> getQueryParameters(); @Override MultivaluedMap<String, String> getQueryParameters(final boolean decode); void invalidateUriComponentViews(); @Override URI getRequestUri(); @Override UriBuilder getRequestUriBuilder(); @Override Throwable getMappedThrowable(); @Override void setMappedThrowable(final Throwable mappedThrowable); @Override List<UriTemplate> getMatchedTemplates(); @Override List<PathSegment> getPathSegments(final String name); @Override List<PathSegment> getPathSegments(final String name, final boolean decode); @Override Method getResourceMethod(); @Override Class<?> getResourceClass(); @Override List<RuntimeResource> getMatchedRuntimeResources(); @Override ResourceMethod getMatchedResourceMethod(); @Override List<ResourceMethod> getMatchedResourceLocators(); @Override List<Resource> getLocatorSubResources(); @Override Resource getMatchedModelResource(); @Override URI resolve(final URI uri); @Override URI relativize(URI uri); }
UriRoutingContext implements RoutingContext { @Override public MultivaluedMap<String, String> getQueryParameters() { return getQueryParameters(true); } UriRoutingContext(final ContainerRequest requestContext); @Override void pushMatchResult(final MatchResult matchResult); @Override void pushMatchedResource(final Object resource); @Override Object peekMatchedResource(); @Override void pushMatchedLocator(final ResourceMethod resourceLocator); @Override void pushLeftHandPath(); @Override void pushTemplates(final UriTemplate resourceTemplate, final UriTemplate methodTemplate); @Override String getFinalMatchingGroup(); @Override LinkedList<MatchResult> getMatchedResults(); @Override void setEndpoint(final Endpoint endpoint); @Override Endpoint getEndpoint(); @Override void setMatchedResourceMethod(final ResourceMethod resourceMethod); @Override void pushMatchedRuntimeResource(final RuntimeResource runtimeResource); @Override void pushLocatorSubResource(final Resource subResourceFromLocator); @Override URI getAbsolutePath(); @Override UriBuilder getAbsolutePathBuilder(); @Override URI getBaseUri(); @Override UriBuilder getBaseUriBuilder(); @Override List<Object> getMatchedResources(); @Override List<String> getMatchedURIs(); @Override List<String> getMatchedURIs(final boolean decode); @Override String getPath(); @Override String getPath(final boolean decode); @Override MultivaluedMap<String, String> getPathParameters(); @Override MultivaluedMap<String, String> getPathParameters(final boolean decode); @Override List<PathSegment> getPathSegments(); @Override List<PathSegment> getPathSegments(final boolean decode); @Override MultivaluedMap<String, String> getQueryParameters(); @Override MultivaluedMap<String, String> getQueryParameters(final boolean decode); void invalidateUriComponentViews(); @Override URI getRequestUri(); @Override UriBuilder getRequestUriBuilder(); @Override Throwable getMappedThrowable(); @Override void setMappedThrowable(final Throwable mappedThrowable); @Override List<UriTemplate> getMatchedTemplates(); @Override List<PathSegment> getPathSegments(final String name); @Override List<PathSegment> getPathSegments(final String name, final boolean decode); @Override Method getResourceMethod(); @Override Class<?> getResourceClass(); @Override List<RuntimeResource> getMatchedRuntimeResources(); @Override ResourceMethod getMatchedResourceMethod(); @Override List<ResourceMethod> getMatchedResourceLocators(); @Override List<Resource> getLocatorSubResources(); @Override Resource getMatchedModelResource(); @Override URI resolve(final URI uri); @Override URI relativize(URI uri);  }