public class PostMatchContainerRequestContext extends PreMatchContainerRequestContext
Modifier and Type | Field and Description |
---|---|
protected ResourceMethodInvoker |
resourceMethod |
httpRequest, response
Constructor and Description |
---|
PostMatchContainerRequestContext(HttpRequest request,
ResourceMethodInvoker resourceMethod) |
Modifier and Type | Method and Description |
---|---|
ResourceMethodInvoker |
getResourceMethod() |
void |
setMethod(String method)
Set the request method.
|
void |
setRequestUri(URI requestUri)
Set a new request URI using the current base URI of the application to
resolve the application-specific request URI part.
|
void |
setRequestUri(URI baseUri,
URI requestUri)
Set a new request URI using a new base URI to resolve the application-specific
request URI part.
|
abortWith, getAcceptableLanguages, getAcceptableMediaTypes, getCookies, getDate, getEntityStream, getHeaders, getHeaderString, getHttpRequest, getLanguage, getLength, getMediaType, getMethod, getProperty, getPropertyNames, getRequest, getResponseAbortedWith, getSecurityContext, getUriInfo, hasEntity, removeProperty, setEntityStream, setProperty, setSecurityContext
protected final ResourceMethodInvoker resourceMethod
public PostMatchContainerRequestContext(HttpRequest request, ResourceMethodInvoker resourceMethod)
public ResourceMethodInvoker getResourceMethod()
public void setMethod(String method)
ContainerRequestContext
Note that the method is usable only in pre-matching filters, prior to the resource
matching occurs. Trying to invoke the method in a filter bound to a resource method
results in an IllegalStateException
being thrown.
setMethod
in interface ContainerRequestContext
setMethod
in class PreMatchContainerRequestContext
method
- new request method.HttpMethod
public void setRequestUri(URI requestUri) throws IllegalStateException
ContainerRequestContext
Note that the method is usable only in pre-matching filters, prior to the resource
matching occurs. Trying to invoke the method in a filter bound to a resource method
results in an IllegalStateException
being thrown.
setRequestUri
in interface ContainerRequestContext
setRequestUri
in class PreMatchContainerRequestContext
requestUri
- new URI of the request.IllegalStateException
- in case the method is not invoked from a pre-matching
request filter.ContainerRequestContext.setRequestUri(java.net.URI, java.net.URI)
public void setRequestUri(URI baseUri, URI requestUri) throws IllegalStateException
ContainerRequestContext
Note that the method is usable only in pre-matching filters, prior to the resource
matching occurs. Trying to invoke the method in a filter bound to a resource method
results in an IllegalStateException
being thrown.
setRequestUri
in interface ContainerRequestContext
setRequestUri
in class PreMatchContainerRequestContext
baseUri
- base URI that will be used to resolve the application-specific
part of the request URI.requestUri
- new URI of the request.IllegalStateException
- in case the method is not invoked from a pre-matching
request filter.ContainerRequestContext.setRequestUri(java.net.URI)
Copyright © 2015. All Rights Reserved.