public interface ExtendedUriInfo
extends javax.ws.rs.core.UriInfo
UriInfo
.Modifier and Type | Method and Description |
---|---|
Throwable |
getMappedThrowable()
Get the throwable that was mapped to a response.
|
AbstractResourceMethod |
getMatchedMethod()
Get get matched resource method that was invoked.
|
List<MatchResult> |
getMatchedResults()
Get a read-only list of
MatchResult for matched resources. |
List<UriTemplate> |
getMatchedTemplates()
Get a read-only list of
UriTemplate for matched resources. |
List<javax.ws.rs.core.PathSegment> |
getPathSegments(String name)
Get the path segments that contains a template variable.
|
List<javax.ws.rs.core.PathSegment> |
getPathSegments(String name,
boolean decode)
Get the path segments that contains a template variable.
|
getAbsolutePath, getAbsolutePathBuilder, getBaseUri, getBaseUriBuilder, getMatchedResources, getMatchedURIs, getMatchedURIs, getPath, getPath, getPathParameters, getPathParameters, getPathSegments, getPathSegments, getQueryParameters, getQueryParameters, getRequestUri, getRequestUriBuilder
AbstractResourceMethod getMatchedMethod()
Throwable getMappedThrowable()
A response filter or a message body writer may utilize this method to determine if a resource method was invoked but did not return a response because an exception was thrown from the resource method, or the resource method returned but a response filter threw an exception.
ContainerResponse.getMappedThrowable()
List<MatchResult> getMatchedResults()
MatchResult
for matched resources.
Entries are ordered in reverse request URI matching order, with the
root resource match result last.List<UriTemplate> getMatchedTemplates()
UriTemplate
for matched resources.
Each entry is a URI template that is the value of the
Path
that is a partial path that matched a resource
class, a sub-resource method or a sub-resource locator.
Entries are ordered in reverse request URI matching order, with the
root resource URI template last.List<javax.ws.rs.core.PathSegment> getPathSegments(String name)
getPathSegments(true)
.name
- the template variable nameList<javax.ws.rs.core.PathSegment> getPathSegments(String name, boolean decode)
name
- the template variable namedecode
- controls whether sequences of escaped octets are decoded
(true) or not (false).Copyright © 2013 Oracle Corporation. All rights reserved.