Class PreMatchContainerRequestContext
java.lang.Object
org.jboss.resteasy.core.interception.jaxrs.PreMatchContainerRequestContext
- All Implemented Interfaces:
jakarta.ws.rs.container.ContainerRequestContext
,SuspendableContainerRequestContext
- Direct Known Subclasses:
PostMatchContainerRequestContext
,ResponseContainerRequestContext
public class PreMatchContainerRequestContext
extends Object
implements SuspendableContainerRequestContext
- Version:
- $Revision: 1 $
- Author:
- Bill Burke
-
Field Summary
Modifier and TypeFieldDescriptionprotected final HttpRequest
protected jakarta.ws.rs.core.Response
-
Constructor Summary
ConstructorDescriptionDeprecated.PreMatchContainerRequestContext
(HttpRequest request, jakarta.ws.rs.container.ContainerRequestFilter[] requestFilters, Supplier<BuiltResponse> continuation) -
Method Summary
Modifier and TypeMethodDescriptionvoid
abortWith
(jakarta.ws.rs.core.Response response) boolean
containsHeaderString
(String name, String valueSeparatorRegex, Predicate<String> valuePredicate) boolean
containsHeaderString
(String name, Predicate<String> valuePredicate) filter()
List
<jakarta.ws.rs.core.MediaType> getDate()
getHeaderString
(String name) int
jakarta.ws.rs.core.MediaType
getProperty
(String name) jakarta.ws.rs.core.Request
jakarta.ws.rs.core.Response
jakarta.ws.rs.core.SecurityContext
jakarta.ws.rs.core.UriInfo
boolean
void
removeProperty
(String name) void
resume()
Resumes the current request, and proceeds to the next request filter, if any, or to the resource method.void
Aborts the current request with the given exception.void
setEntityStream
(InputStream entityStream) void
void
setProperty
(String name, Object object) void
setRequestUri
(URI requestUri) void
setRequestUri
(URI baseUri, URI requestUri) void
setSecurityContext
(jakarta.ws.rs.core.SecurityContext context) boolean
void
suspend()
Suspends the current request.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 Details
-
httpRequest
-
response
protected jakarta.ws.rs.core.Response response
-
-
Constructor Details
-
PreMatchContainerRequestContext
Deprecated. -
PreMatchContainerRequestContext
public PreMatchContainerRequestContext(HttpRequest request, jakarta.ws.rs.container.ContainerRequestFilter[] requestFilters, Supplier<BuiltResponse> continuation)
-
-
Method Details
-
getHttpRequest
-
getResponseAbortedWith
public jakarta.ws.rs.core.Response getResponseAbortedWith() -
getProperty
-
getPropertyNames
- Specified by:
getPropertyNames
in interfacejakarta.ws.rs.container.ContainerRequestContext
-
setProperty
-
removeProperty
- Specified by:
removeProperty
in interfacejakarta.ws.rs.container.ContainerRequestContext
-
getUriInfo
public jakarta.ws.rs.core.UriInfo getUriInfo()- Specified by:
getUriInfo
in interfacejakarta.ws.rs.container.ContainerRequestContext
-
setRequestUri
- Specified by:
setRequestUri
in interfacejakarta.ws.rs.container.ContainerRequestContext
- Throws:
IllegalStateException
-
setRequestUri
- Specified by:
setRequestUri
in interfacejakarta.ws.rs.container.ContainerRequestContext
- Throws:
IllegalStateException
-
getMethod
- Specified by:
getMethod
in interfacejakarta.ws.rs.container.ContainerRequestContext
-
setMethod
- Specified by:
setMethod
in interfacejakarta.ws.rs.container.ContainerRequestContext
-
getHeaders
-
getDate
- Specified by:
getDate
in interfacejakarta.ws.rs.container.ContainerRequestContext
-
getLanguage
- Specified by:
getLanguage
in interfacejakarta.ws.rs.container.ContainerRequestContext
-
getLength
public int getLength()- Specified by:
getLength
in interfacejakarta.ws.rs.container.ContainerRequestContext
-
getMediaType
public jakarta.ws.rs.core.MediaType getMediaType()- Specified by:
getMediaType
in interfacejakarta.ws.rs.container.ContainerRequestContext
-
getAcceptableMediaTypes
- Specified by:
getAcceptableMediaTypes
in interfacejakarta.ws.rs.container.ContainerRequestContext
-
getAcceptableLanguages
-
getCookies
-
hasEntity
public boolean hasEntity()- Specified by:
hasEntity
in interfacejakarta.ws.rs.container.ContainerRequestContext
-
getEntityStream
- Specified by:
getEntityStream
in interfacejakarta.ws.rs.container.ContainerRequestContext
-
setEntityStream
- Specified by:
setEntityStream
in interfacejakarta.ws.rs.container.ContainerRequestContext
-
getSecurityContext
public jakarta.ws.rs.core.SecurityContext getSecurityContext()- Specified by:
getSecurityContext
in interfacejakarta.ws.rs.container.ContainerRequestContext
-
setSecurityContext
public void setSecurityContext(jakarta.ws.rs.core.SecurityContext context) - Specified by:
setSecurityContext
in interfacejakarta.ws.rs.container.ContainerRequestContext
-
getRequest
public jakarta.ws.rs.core.Request getRequest()- Specified by:
getRequest
in interfacejakarta.ws.rs.container.ContainerRequestContext
-
getHeaderString
-
containsHeaderString
-
containsHeaderString
-
suspend
public void suspend()Description copied from interface:SuspendableContainerRequestContext
Suspends the current request. This makes the current request asynchronous. No further request filter is executed until this request is resumed. No reply is going to be sent to the client until this request is resumed either withSuspendableContainerRequestContext.resume()
or aborted withSuspendableContainerRequestContext.resume(Throwable)
orContainerRequestContext.abortWith(jakarta.ws.rs.core.Response)
.- Specified by:
suspend
in interfaceSuspendableContainerRequestContext
-
abortWith
public void abortWith(jakarta.ws.rs.core.Response response) - Specified by:
abortWith
in interfacejakarta.ws.rs.container.ContainerRequestContext
-
resume
public void resume()Description copied from interface:SuspendableContainerRequestContext
Resumes the current request, and proceeds to the next request filter, if any, or to the resource method.- Specified by:
resume
in interfaceSuspendableContainerRequestContext
-
resume
Description copied from interface:SuspendableContainerRequestContext
Aborts the current request with the given exception. This behaves as if the request filter threw this exception synchronously, which means exceptions may be mapped via exception mappers, response filters will run and async response callbacks will be called with this exception.- Specified by:
resume
in interfaceSuspendableContainerRequestContext
- Parameters:
t
- the exception to send back to the client, as mapped by the application.
-
filter
-
startedContinuation
public boolean startedContinuation()
-