Class PostMatchContainerRequestContext
java.lang.Object
org.jboss.resteasy.core.interception.jaxrs.PreMatchContainerRequestContext
org.jboss.resteasy.core.interception.jaxrs.PostMatchContainerRequestContext
- All Implemented Interfaces:
ContainerRequestContext,SuspendableContainerRequestContext
- Version:
- $Revision: 1 $
- Author:
- Bill Burke
-
Field Summary
FieldsFields inherited from class org.jboss.resteasy.core.interception.jaxrs.PreMatchContainerRequestContext
httpRequest, response -
Constructor Summary
ConstructorsConstructorDescriptionPostMatchContainerRequestContext(HttpRequest request, ResourceMethodInvoker resourceMethod) Deprecated.PostMatchContainerRequestContext(HttpRequest request, ResourceMethodInvoker resourceMethod, ContainerRequestFilter[] requestFilters, Supplier<BuiltResponse> continuation) -
Method Summary
Modifier and TypeMethodDescriptionvoidSet 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, suspendMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface jakarta.ws.rs.container.ContainerRequestContext
hasProperty
-
Field Details
-
resourceMethod
-
-
Constructor Details
-
PostMatchContainerRequestContext
@Deprecated public PostMatchContainerRequestContext(HttpRequest request, ResourceMethodInvoker resourceMethod) Deprecated. -
PostMatchContainerRequestContext
public PostMatchContainerRequestContext(HttpRequest request, ResourceMethodInvoker resourceMethod, ContainerRequestFilter[] requestFilters, Supplier<BuiltResponse> continuation)
-
-
Method Details
-
getResourceMethod
-
setMethod
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:
-
setRequestUri
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:
-
setRequestUri
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:
-