Package org.jboss.resteasy.specimpl
Class ResteasyUriInfo
java.lang.Object
org.jboss.resteasy.specimpl.ResteasyUriInfo
- All Implemented Interfaces:
 jakarta.ws.rs.core.UriInfo
UriInfo implementation with some added extra methods to help process requests.
- Version:
 - $Revision: 1 $
 - Author:
 - Bill Burke
 
- 
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classHolds the data that is needed to initialize ResteasyUriInfo The reason to extract this data into a separate class is that it's expensive to produce and can be cached under certain circumstances - 
Constructor Summary
ConstructorsConstructorDescriptionResteasyUriInfo(String absoluteUri, String contextPath) ResteasyUriInfo(String absoluteUri, String contextPath, ResteasyUriInfo.InitData initData) Meant to be called by a layer that know that the absoluteUri will result in the successful invocation of a JAX-RS endpoint.ResteasyUriInfo(URI requestURI) ResteasyUriInfo(URI base, URI relative)  - 
Method Summary
Modifier and TypeMethodDescriptionvoidaddEncodedPathParameter(String name, String value) protected voidjakarta.ws.rs.core.UriBuilderjakarta.ws.rs.core.UriBuilderi.e.jakarta.ws.rs.core.MultivaluedMap<String, jakarta.ws.rs.core.PathSegment[]> getMatchedURIs(boolean decode) Encoded path without matrix parameters.getPath()getPath(boolean decode) jakarta.ws.rs.core.MultivaluedMap<String, jakarta.ws.rs.core.PathSegment[]> getPathParameters(boolean decode) List<jakarta.ws.rs.core.PathSegment> List<jakarta.ws.rs.core.PathSegment> getPathSegments(boolean decode) getQueryParameters(boolean decode) jakarta.ws.rs.core.UriBuilderprotected voidinitialize(CharSequence absoluteUri, String queryString, String contextPath) protected voidinitialize(String absoluteUri, String contextPath, ResteasyUriInfo.InitData initData) voidinitializeFromRequest(URI requestURI) voidprotected voidvoidpushCurrentResource(Object resource) voidpushMatchedPath(String encoded) voidpushMatchedURI(String encoded) relativize(URI uri) voidsetRequestUri(URI relative) Create a UriInfo from the baseURI.void 
- 
Constructor Details
- 
ResteasyUriInfo
 - 
ResteasyUriInfo
Meant to be called by a layer that know that the absoluteUri will result in the successful invocation of a JAX-RS endpoint. The caller is also expected to ensure that InitData is cacheable - 
ResteasyUriInfo
 - 
ResteasyUriInfo
 
 - 
 - 
Method Details
- 
initialize
protected void initialize(String absoluteUri, String contextPath, ResteasyUriInfo.InitData initData)  - 
initialize
 - 
setUri
 - 
processPath
protected void processPath() - 
initializeFromRequest
 - 
getContextPath
i.e. servlet context path. May not be set.- Returns:
 
 - 
getMatchingPath
Encoded path without matrix parameters.- Returns:
 - matching path
 
 - 
setRequestUri
Create a UriInfo from the baseURI.- Parameters:
 relative- relative uri
 - 
getPath
- Specified by:
 getPathin interfacejakarta.ws.rs.core.UriInfo
 - 
getPath
- Specified by:
 getPathin interfacejakarta.ws.rs.core.UriInfo
 - 
getPathSegments
- Specified by:
 getPathSegmentsin interfacejakarta.ws.rs.core.UriInfo
 - 
getPathSegments
- Specified by:
 getPathSegmentsin interfacejakarta.ws.rs.core.UriInfo
 - 
getRequestUri
- Specified by:
 getRequestUriin interfacejakarta.ws.rs.core.UriInfo
 - 
getRequestUriBuilder
public jakarta.ws.rs.core.UriBuilder getRequestUriBuilder()- Specified by:
 getRequestUriBuilderin interfacejakarta.ws.rs.core.UriInfo
 - 
getAbsolutePath
- Specified by:
 getAbsolutePathin interfacejakarta.ws.rs.core.UriInfo
 - 
getAbsolutePathBuilder
public jakarta.ws.rs.core.UriBuilder getAbsolutePathBuilder()- Specified by:
 getAbsolutePathBuilderin interfacejakarta.ws.rs.core.UriInfo
 - 
getBaseUri
- Specified by:
 getBaseUriin interfacejakarta.ws.rs.core.UriInfo
 - 
getBaseUriBuilder
public jakarta.ws.rs.core.UriBuilder getBaseUriBuilder()- Specified by:
 getBaseUriBuilderin interfacejakarta.ws.rs.core.UriInfo
 - 
getPathParameters
- Specified by:
 getPathParametersin interfacejakarta.ws.rs.core.UriInfo
 - 
addEncodedPathParameter
 - 
getEncodedPathParameterPathSegments
public jakarta.ws.rs.core.MultivaluedMap<String,jakarta.ws.rs.core.PathSegment[]> getEncodedPathParameterPathSegments() - 
getPathParameterPathSegments
public jakarta.ws.rs.core.MultivaluedMap<String,jakarta.ws.rs.core.PathSegment[]> getPathParameterPathSegments() - 
getPathParameters
- Specified by:
 getPathParametersin interfacejakarta.ws.rs.core.UriInfo
 - 
getQueryParameters
- Specified by:
 getQueryParametersin interfacejakarta.ws.rs.core.UriInfo
 - 
getEncodedQueryParameters
 - 
getQueryParameters
- Specified by:
 getQueryParametersin interfacejakarta.ws.rs.core.UriInfo
 - 
extractParameters
protected void extractParameters() - 
getMatchedURIs
- Specified by:
 getMatchedURIsin interfacejakarta.ws.rs.core.UriInfo
 - 
getMatchedURIs
- Specified by:
 getMatchedURIsin interfacejakarta.ws.rs.core.UriInfo
 - 
getMatchedResources
- Specified by:
 getMatchedResourcesin interfacejakarta.ws.rs.core.UriInfo
 - 
pushCurrentResource
 - 
pushMatchedPath
 - 
getEncodedMatchedPaths
 - 
popMatchedPath
public void popMatchedPath() - 
pushMatchedURI
 - 
resolve
- Specified by:
 resolvein interfacejakarta.ws.rs.core.UriInfo
 - 
relativize
- Specified by:
 relativizein interfacejakarta.ws.rs.core.UriInfo
 
 -