Package org.jboss.resteasy.spi
Class ResteasyUriInfo
java.lang.Object
org.jboss.resteasy.spi.ResteasyUriInfo
- All Implemented Interfaces:
javax.ws.rs.core.UriInfo
UriInfo implementation with some added extra methods to help process requests
- Version:
- $Revision: 1 $
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate URI
private URI
private String
private String
private javax.ws.rs.core.MultivaluedMap<String,
javax.ws.rs.core.PathSegment[]> private List<javax.ws.rs.core.PathSegment>
private String
private String
private javax.ws.rs.core.MultivaluedMap<String,
javax.ws.rs.core.PathSegment[]> private List<javax.ws.rs.core.PathSegment>
private String
private URI
-
Constructor Summary
ConstructorsConstructorDescriptionResteasyUriInfo
(String absoluteUri, String queryString, String contextPath) ResteasyUriInfo
(URI requestURI) ResteasyUriInfo
(URI base, URI relative) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addEncodedPathParameter
(String name, String value) private void
private void
void
clearQueryParameters
(boolean decode) protected void
extractMatchingPath
(List<javax.ws.rs.core.PathSegment> encodedPathSegments) matching path without matrix parametersprotected void
extractParameters
(String queryString) javax.ws.rs.core.UriBuilder
javax.ws.rs.core.UriBuilder
javax.ws.rs.core.MultivaluedMap<String,
javax.ws.rs.core.PathSegment[]> getMatchedURIs
(boolean decode) Encoded path without matrix parametersgetPath()
getPath
(boolean decode) javax.ws.rs.core.MultivaluedMap<String,
javax.ws.rs.core.PathSegment[]> getPathParameters
(boolean decode) List<javax.ws.rs.core.PathSegment>
List<javax.ws.rs.core.PathSegment>
getPathSegments
(boolean decode) getQueryParameters
(boolean decode) javax.ws.rs.core.UriBuilder
protected void
initialize
(String absoluteUri, String queryString, String contextPath) 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 baseURIvoid
-
Field Details
-
path
-
encodedPath
-
matchingPath
-
queryParameters
-
encodedQueryParameters
-
pathParameters
-
encodedPathParameters
-
pathParameterPathSegments
private javax.ws.rs.core.MultivaluedMap<String,javax.ws.rs.core.PathSegment[]> pathParameterPathSegments -
encodedPathParameterPathSegments
private javax.ws.rs.core.MultivaluedMap<String,javax.ws.rs.core.PathSegment[]> encodedPathParameterPathSegments -
pathSegments
-
encodedPathSegments
-
absolutePath
-
requestURI
-
baseURI
-
matchedUris
-
encodedMatchedUris
-
encodedMatchedPaths
-
ancestors
-
queryString
-
contextPath
-
-
Constructor Details
-
ResteasyUriInfo
-
ResteasyUriInfo
-
ResteasyUriInfo
-
-
Method Details
-
initialize
-
setUri
-
processPath
protected void processPath() -
initializeFromRequest
-
extractMatchingPath
matching path without matrix parameters- Parameters:
encodedPathSegments
-
-
getMatchingPath
Encoded path without matrix parameters- Returns:
-
setRequestUri
Create a UriInfo from the baseURI- Parameters:
relative
-
-
getPath
- Specified by:
getPath
in interfacejavax.ws.rs.core.UriInfo
-
getPath
- Specified by:
getPath
in interfacejavax.ws.rs.core.UriInfo
-
getPathSegments
- Specified by:
getPathSegments
in interfacejavax.ws.rs.core.UriInfo
-
getPathSegments
- Specified by:
getPathSegments
in interfacejavax.ws.rs.core.UriInfo
-
getRequestUri
- Specified by:
getRequestUri
in interfacejavax.ws.rs.core.UriInfo
-
getRequestUriBuilder
public javax.ws.rs.core.UriBuilder getRequestUriBuilder()- Specified by:
getRequestUriBuilder
in interfacejavax.ws.rs.core.UriInfo
-
getAbsolutePath
- Specified by:
getAbsolutePath
in interfacejavax.ws.rs.core.UriInfo
-
getAbsolutePathBuilder
public javax.ws.rs.core.UriBuilder getAbsolutePathBuilder()- Specified by:
getAbsolutePathBuilder
in interfacejavax.ws.rs.core.UriInfo
-
getBaseUri
- Specified by:
getBaseUri
in interfacejavax.ws.rs.core.UriInfo
-
getBaseUriBuilder
public javax.ws.rs.core.UriBuilder getBaseUriBuilder()- Specified by:
getBaseUriBuilder
in interfacejavax.ws.rs.core.UriInfo
-
getPathParameters
- Specified by:
getPathParameters
in interfacejavax.ws.rs.core.UriInfo
-
addEncodedPathParameter
-
getEncodedPathParameters
-
getEncodedPathParameterPathSegments
public javax.ws.rs.core.MultivaluedMap<String,javax.ws.rs.core.PathSegment[]> getEncodedPathParameterPathSegments() -
getPathParameterPathSegments
public javax.ws.rs.core.MultivaluedMap<String,javax.ws.rs.core.PathSegment[]> getPathParameterPathSegments() -
getPathParameters
- Specified by:
getPathParameters
in interfacejavax.ws.rs.core.UriInfo
-
getQueryParameters
- Specified by:
getQueryParameters
in interfacejavax.ws.rs.core.UriInfo
-
getEncodedQueryParameters
-
getQueryParameters
- Specified by:
getQueryParameters
in interfacejavax.ws.rs.core.UriInfo
-
clearQueryParameters
public void clearQueryParameters(boolean decode) -
clearQueryParameters
private void clearQueryParameters() -
clearEncodedQueryParameters
private void clearEncodedQueryParameters() -
extractParameters
-
getMatchedURIs
- Specified by:
getMatchedURIs
in interfacejavax.ws.rs.core.UriInfo
-
getMatchedURIs
- Specified by:
getMatchedURIs
in interfacejavax.ws.rs.core.UriInfo
-
getMatchedResources
- Specified by:
getMatchedResources
in interfacejavax.ws.rs.core.UriInfo
-
pushCurrentResource
-
pushMatchedPath
-
getEncodedMatchedPaths
-
popMatchedPath
public void popMatchedPath() -
pushMatchedURI
-
resolve
- Specified by:
resolve
in interfacejavax.ws.rs.core.UriInfo
-
relativize
- Specified by:
relativize
in interfacejavax.ws.rs.core.UriInfo
-