Modifier and Type | Method and Description |
---|---|
java.lang.Throwable |
getMappedThrowable()
Get the throwable that was mapped to a response.
|
AbstractResourceMethod |
getMatchedMethod()
Get get matched resource method that was invoked.
|
java.util.List<java.util.regex.MatchResult> |
getMatchedResults()
Get a read-only list of
MatchResult for matched resources. |
java.util.List<UriTemplate> |
getMatchedTemplates()
Get a read-only list of
UriTemplate for matched resources. |
java.util.List<PathSegment> |
getPathSegments(java.lang.String name)
Get the path segments that contains a template variable.
|
java.util.List<PathSegment> |
getPathSegments(java.lang.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()
java.lang.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()
java.util.List<java.util.regex.MatchResult> getMatchedResults()
MatchResult
for matched resources.
Entries are ordered in reverse request URI matching order, with the
root resource match result last.java.util.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.java.util.List<PathSegment> getPathSegments(java.lang.String name)
getPathSegments(true)
.name
- the template variable namejava.util.List<PathSegment> getPathSegments(java.lang.String name, boolean decode)
name
- the template variable namedecode
- controls whether sequences of escaped octets are decoded
(true) or not (false).Copyright © 2016 Oracle Corporation. All Rights Reserved.