public interface UriRuleContext extends HttpContext, UriMatchResultContext
Modifier and Type | Method and Description |
---|---|
ContainerRequest |
getContainerRequest()
Get the container request.
|
ContainerResponse |
getContainerResponse()
Get the container response.
|
java.lang.Object |
getResource(java.lang.Class resourceClass)
Get the resource instance from a resource class.
|
UriRules<UriRule> |
getRules(java.lang.Class resourceClass)
Get the rules for a resource class.
|
void |
pushContainerResponseFilters(java.util.List<ContainerResponseFilter> filters)
Push a list of container response filters to apply after the
container response has been produced.
|
void |
pushMatch(UriTemplate template,
java.util.List<java.lang.String> names)
Push a match.
|
void |
pushMethod(AbstractResourceMethod arm)
Push the matching resource method.
|
void |
pushResource(java.lang.Object resource)
Push a matching resource.
|
void |
pushRightHandPathLength(int rhpathlen)
Push the right hand path length to calculate the entry for
the list of matching (ancestor) URI paths.
|
void |
setContainerRequest(ContainerRequest request)
Set the container request.
|
void |
setContainerResponse(ContainerResponse response)
Set the container response.
|
getProperties, getRequest, getResponse, getUriInfo
getMatchResult, setMatchResult
isTracingEnabled, trace
ContainerRequest getContainerRequest()
void setContainerRequest(ContainerRequest request)
request
- the container request.ContainerResponse getContainerResponse()
void setContainerResponse(ContainerResponse response)
response
- the container response.void pushContainerResponseFilters(java.util.List<ContainerResponseFilter> filters)
The list of response filters is processed in reverse order of last to first.
filters
- the list container response filtersjava.lang.Object getResource(java.lang.Class resourceClass)
resourceClass
- the resource classUriRules<UriRule> getRules(java.lang.Class resourceClass)
resourceClass
- the resource class that has rulesvoid pushMatch(UriTemplate template, java.util.List<java.lang.String> names)
template
- the matching URI template.names
- the parameter names associated with the capturing group
values.void pushResource(java.lang.Object resource)
resource
- the matching resourcevoid pushMethod(AbstractResourceMethod arm)
arm
- the matching resource method.void pushRightHandPathLength(int rhpathlen)
rhpathlen
- the right hand lengthCopyright © 2016 Oracle Corporation. All Rights Reserved.