public interface RoutingContext extends ResourceInfo
| Modifier and Type | Method and Description |
|---|---|
Iterable<RankedProvider<ReaderInterceptor>> |
getBoundReaderInterceptors()
Get all reader interceptors applicable to this request.
|
Iterable<RankedProvider<ContainerRequestFilter>> |
getBoundRequestFilters()
Get all bound request filters applicable to this request.
|
Iterable<RankedProvider<ContainerResponseFilter>> |
getBoundResponseFilters()
Get all bound response filters applicable to this request.
|
Iterable<RankedProvider<WriterInterceptor>> |
getBoundWriterInterceptors()
Get all writer interceptors applicable to this request.
|
String |
getFinalMatchingGroup()
Get the final matching group of the last successful request URI routing
pattern
match result. |
Inflector<ContainerRequest,ContainerResponse> |
getInflector()
Get the matched request to response data inflector if present, or
null
otherwise. |
List<MatchResult> |
getMatchedResults()
Get a read-only list of
match results for matched
request URI routing patterns. |
Object |
peekMatchedResource()
Peek the last resource object that successfully matched the request URI.
|
MatchResult |
peekMatchResult()
Peek at the last successful request URI routing pattern
match result. |
void |
pushLeftHandPath()
Add currently matched left-hand side part of request path to the list of
matched paths returned by
UriInfo.getMatchedURIs(). |
void |
pushMatchedResource(Object resource)
Push the resource that matched the request URI.
|
void |
pushMatchedRuntimeResource(RuntimeResource runtimeResource)
Push a matched
runtime resource that was visited during matching phase. |
void |
pushMatchResult(MatchResult matchResult)
Push the result of the successful request URI routing pattern match.
|
void |
pushTemplate(UriTemplate template)
Push matched request URI routing pattern
URI template. |
void |
setInflector(Inflector<ContainerRequest,ContainerResponse> inflector)
Set the matched request to response inflector.
|
void |
setMatchedResource(Resource resource)
Set the matched
resource or child resource. |
void |
setMatchedResourceMethod(ResourceMethod resourceMethod)
Set the matched
resource method. |
getResourceClass, getResourceMethodvoid pushMatchResult(MatchResult matchResult)
matchResult - successful request URI routing pattern
match result.void pushMatchedResource(Object resource)
resource - instance of the resource that matched the request URI.Object peekMatchedResource()
pushMatchedResource(java.lang.Object)MatchResult peekMatchResult()
match result.void pushTemplate(UriTemplate template)
URI template.template - URI template of the matched request URI routing pattern.String getFinalMatchingGroup()
match result. Also known as right-hand path.
May be empty but is never null.
List<MatchResult> getMatchedResults()
match results for matched
request URI routing patterns. Entries are ordered in reverse request URI
matching order, with the root request URI routing pattern match result
last.void pushLeftHandPath()
UriInfo.getMatchedURIs().
Left-hand side request path is the request path excluding the suffix
part of the path matched by the final
matching group of the last successful request URI routing pattern.void setInflector(Inflector<ContainerRequest,ContainerResponse> inflector)
inflector - matched request to response inflector.Inflector<ContainerRequest,ContainerResponse> getInflector()
null
otherwise.null if not available.Iterable<RankedProvider<ContainerRequestFilter>> getBoundRequestFilters()
Iterable<RankedProvider<ContainerResponseFilter>> getBoundResponseFilters()
Iterable<RankedProvider<ReaderInterceptor>> getBoundReaderInterceptors()
Iterable<RankedProvider<WriterInterceptor>> getBoundWriterInterceptors()
void setMatchedResourceMethod(ResourceMethod resourceMethod)
resource method. This method needs to be called only if the method was
matched. This method should be called only for setting the final resource method and not for setting sub resource
locators invoked during matching.resourceMethod - Resource method that was matched.void setMatchedResource(Resource resource)
resource or child resource. This method needs to be called only if the resource was
matched. This method should be called only setting for final resource which contains matched resource method
and not for setting resources which contains sub resource locators invoked during matching.resource - Resource that was matched.void pushMatchedRuntimeResource(RuntimeResource runtimeResource)
runtime resource that was visited during matching phase. This method must
be called for any matched runtime resource.runtimeResource - Runtime resource that was matched during matching.Copyright © 2007-2012 Oracle Corporation. All Rights Reserved. Use is subject to license terms.