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
Modifier and TypeClassDescriptionstatic class
Holds 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
ConstructorDescriptionResteasyUriInfo
(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 TypeMethodDescriptionvoid
addEncodedPathParameter
(String name, String value) protected void
jakarta.ws.rs.core.UriBuilder
jakarta.ws.rs.core.UriBuilder
i.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.UriBuilder
protected void
initialize
(CharSequence absoluteUri, String queryString, String contextPath) protected void
initialize
(String absoluteUri, String contextPath, ResteasyUriInfo.InitData initData) void
initializeFromRequest
(URI requestURI) void
protected void
void
pushCurrentResource
(Object resource) void
pushMatchedPath
(String encoded) void
pushMatchedURI
(String encoded) relativize
(URI uri) void
setRequestUri
(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
-
getMatchingPath
-
setRequestUri
Create a UriInfo from the baseURI.- Parameters:
relative
- relative uri
-
getPath
- Specified by:
getPath
in interfacejakarta.ws.rs.core.UriInfo
-
getPath
- Specified by:
getPath
in interfacejakarta.ws.rs.core.UriInfo
-
getPathSegments
- Specified by:
getPathSegments
in interfacejakarta.ws.rs.core.UriInfo
-
getPathSegments
- Specified by:
getPathSegments
in interfacejakarta.ws.rs.core.UriInfo
-
getRequestUri
- Specified by:
getRequestUri
in interfacejakarta.ws.rs.core.UriInfo
-
getRequestUriBuilder
public jakarta.ws.rs.core.UriBuilder getRequestUriBuilder()- Specified by:
getRequestUriBuilder
in interfacejakarta.ws.rs.core.UriInfo
-
getAbsolutePath
- Specified by:
getAbsolutePath
in interfacejakarta.ws.rs.core.UriInfo
-
getAbsolutePathBuilder
public jakarta.ws.rs.core.UriBuilder getAbsolutePathBuilder()- Specified by:
getAbsolutePathBuilder
in interfacejakarta.ws.rs.core.UriInfo
-
getBaseUri
- Specified by:
getBaseUri
in interfacejakarta.ws.rs.core.UriInfo
-
getBaseUriBuilder
public jakarta.ws.rs.core.UriBuilder getBaseUriBuilder()- Specified by:
getBaseUriBuilder
in interfacejakarta.ws.rs.core.UriInfo
-
getPathParameters
-
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
-
getQueryParameters
-
getEncodedQueryParameters
-
getQueryParameters
-
extractParameters
protected void extractParameters() -
getMatchedURIs
-
getMatchedURIs
-
getMatchedResources
-
pushCurrentResource
-
pushMatchedPath
-
getEncodedMatchedPaths
-
popMatchedPath
public void popMatchedPath() -
pushMatchedURI
-
resolve
-
relativize
-