Class PostMatchContainerRequestContext
- java.lang.Object
-
- org.jboss.resteasy.core.interception.jaxrs.PreMatchContainerRequestContext
-
- org.jboss.resteasy.core.interception.jaxrs.PostMatchContainerRequestContext
-
- All Implemented Interfaces:
ContainerRequestContext,SuspendableContainerRequestContext
public class PostMatchContainerRequestContext extends PreMatchContainerRequestContext
- Version:
- $Revision: 1 $
- Author:
- Bill Burke
-
-
Field Summary
Fields Modifier and Type Field Description protected ResourceMethodInvokerresourceMethod-
Fields inherited from class org.jboss.resteasy.core.interception.jaxrs.PreMatchContainerRequestContext
httpRequest, response
-
-
Constructor Summary
Constructors Constructor Description PostMatchContainerRequestContext(HttpRequest request, ResourceMethodInvoker resourceMethod)Deprecated.PostMatchContainerRequestContext(HttpRequest request, ResourceMethodInvoker resourceMethod, ContainerRequestFilter[] requestFilters, Supplier<BuiltResponse> continuation)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResourceMethodInvokergetResourceMethod()voidsetMethod(String method)Set the request method.voidsetRequestUri(URI requestUri)Set a new request URI using the current base URI of the application to resolve the application-specific request URI part.voidsetRequestUri(URI baseUri, URI requestUri)Set a new request URI using a new base URI to resolve the application-specific request URI part.-
Methods inherited from class org.jboss.resteasy.core.interception.jaxrs.PreMatchContainerRequestContext
abortWith, filter, getAcceptableLanguages, getAcceptableMediaTypes, getCookies, getDate, getEntityStream, getHeaders, getHeaderString, getHttpRequest, getLanguage, getLength, getMediaType, getMethod, getProperty, getPropertyNames, getRequest, getResponseAbortedWith, getSecurityContext, getUriInfo, hasEntity, removeProperty, resume, resume, setEntityStream, setProperty, setSecurityContext, startedContinuation, suspend
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface jakarta.ws.rs.container.ContainerRequestContext
hasProperty
-
-
-
-
Field Detail
-
resourceMethod
protected final ResourceMethodInvoker resourceMethod
-
-
Constructor Detail
-
PostMatchContainerRequestContext
@Deprecated public PostMatchContainerRequestContext(HttpRequest request, ResourceMethodInvoker resourceMethod)
Deprecated.
-
PostMatchContainerRequestContext
public PostMatchContainerRequestContext(HttpRequest request, ResourceMethodInvoker resourceMethod, ContainerRequestFilter[] requestFilters, Supplier<BuiltResponse> continuation)
-
-
Method Detail
-
getResourceMethod
public ResourceMethodInvoker getResourceMethod()
-
setMethod
public void setMethod(String method)
Description copied from interface:ContainerRequestContextSet the request method.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
IllegalStateExceptionbeing thrown.- Specified by:
setMethodin interfaceContainerRequestContext- Overrides:
setMethodin classPreMatchContainerRequestContext- Parameters:
method- new request method.- See Also:
HttpMethod
-
setRequestUri
public void setRequestUri(URI requestUri) throws IllegalStateException
Description copied from interface:ContainerRequestContextSet a new request URI using the current base URI of the application to resolve the application-specific request URI part.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
IllegalStateExceptionbeing thrown.- Specified by:
setRequestUriin interfaceContainerRequestContext- Overrides:
setRequestUriin classPreMatchContainerRequestContext- Parameters:
requestUri- new URI of the request.- Throws:
IllegalStateException- in case the method is not invoked from apre-matchingrequest filter.- See Also:
ContainerRequestContext.setRequestUri(java.net.URI, java.net.URI)
-
setRequestUri
public void setRequestUri(URI baseUri, URI requestUri) throws IllegalStateException
Description copied from interface:ContainerRequestContextSet a new request URI using a new base URI to resolve the application-specific request URI part.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
IllegalStateExceptionbeing thrown.- Specified by:
setRequestUriin interfaceContainerRequestContext- Overrides:
setRequestUriin classPreMatchContainerRequestContext- Parameters:
baseUri- base URI that will be used to resolve the application-specific part of the request URI.requestUri- new URI of the request.- Throws:
IllegalStateException- in case the method is not invoked from apre-matchingrequest filter.- See Also:
ContainerRequestContext.setRequestUri(java.net.URI)
-
-