|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface RoutingContext
Jersey request matching and routing context.
| Method Summary | |
|---|---|
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 |
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. |
| Methods inherited from interface javax.ws.rs.container.ResourceInfo |
|---|
getResourceClass, getResourceMethod |
| Method Detail |
|---|
void 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()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||