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 Details

    • httpRequest

      protected final HttpRequest httpRequest
    • response

      protected jakarta.ws.rs.core.Response response
  • Constructor Details

    • PreMatchContainerRequestContext

      @Deprecated public PreMatchContainerRequestContext(HttpRequest request)
      Deprecated.
    • PreMatchContainerRequestContext

      public PreMatchContainerRequestContext(HttpRequest request, jakarta.ws.rs.container.ContainerRequestFilter[] requestFilters, Supplier<BuiltResponse> continuation)
  • Method Details

    • getHttpRequest

      public HttpRequest getHttpRequest()
    • getResponseAbortedWith

      public jakarta.ws.rs.core.Response getResponseAbortedWith()
    • getProperty

      public Object getProperty(String name)
      Specified by:
      getProperty in interface jakarta.ws.rs.container.ContainerRequestContext
    • getPropertyNames

      public Collection<String> getPropertyNames()
      Specified by:
      getPropertyNames in interface jakarta.ws.rs.container.ContainerRequestContext
    • setProperty

      public void setProperty(String name, Object object)
      Specified by:
      setProperty in interface jakarta.ws.rs.container.ContainerRequestContext
    • removeProperty

      public void removeProperty(String name)
      Specified by:
      removeProperty in interface jakarta.ws.rs.container.ContainerRequestContext
    • getUriInfo

      public jakarta.ws.rs.core.UriInfo getUriInfo()
      Specified by:
      getUriInfo in interface jakarta.ws.rs.container.ContainerRequestContext
    • setRequestUri

      public void setRequestUri(URI requestUri) throws IllegalStateException
      Specified by:
      setRequestUri in interface jakarta.ws.rs.container.ContainerRequestContext
      Throws:
      IllegalStateException
    • setRequestUri

      public void setRequestUri(URI baseUri, URI requestUri) throws IllegalStateException
      Specified by:
      setRequestUri in interface jakarta.ws.rs.container.ContainerRequestContext
      Throws:
      IllegalStateException
    • getMethod

      public String getMethod()
      Specified by:
      getMethod in interface jakarta.ws.rs.container.ContainerRequestContext
    • setMethod

      public void setMethod(String method)
      Specified by:
      setMethod in interface jakarta.ws.rs.container.ContainerRequestContext
    • getHeaders

      public jakarta.ws.rs.core.MultivaluedMap<String,String> getHeaders()
      Specified by:
      getHeaders in interface jakarta.ws.rs.container.ContainerRequestContext
    • getDate

      public Date getDate()
      Specified by:
      getDate in interface jakarta.ws.rs.container.ContainerRequestContext
    • getLanguage

      public Locale getLanguage()
      Specified by:
      getLanguage in interface jakarta.ws.rs.container.ContainerRequestContext
    • getLength

      public int getLength()
      Specified by:
      getLength in interface jakarta.ws.rs.container.ContainerRequestContext
    • getMediaType

      public jakarta.ws.rs.core.MediaType getMediaType()
      Specified by:
      getMediaType in interface jakarta.ws.rs.container.ContainerRequestContext
    • getAcceptableMediaTypes

      public List<jakarta.ws.rs.core.MediaType> getAcceptableMediaTypes()
      Specified by:
      getAcceptableMediaTypes in interface jakarta.ws.rs.container.ContainerRequestContext
    • getAcceptableLanguages

      public List<Locale> getAcceptableLanguages()
      Specified by:
      getAcceptableLanguages in interface jakarta.ws.rs.container.ContainerRequestContext
    • getCookies

      public Map<String,jakarta.ws.rs.core.Cookie> getCookies()
      Specified by:
      getCookies in interface jakarta.ws.rs.container.ContainerRequestContext
    • hasEntity

      public boolean hasEntity()
      Specified by:
      hasEntity in interface jakarta.ws.rs.container.ContainerRequestContext
    • getEntityStream

      public InputStream getEntityStream()
      Specified by:
      getEntityStream in interface jakarta.ws.rs.container.ContainerRequestContext
    • setEntityStream

      public void setEntityStream(InputStream entityStream)
      Specified by:
      setEntityStream in interface jakarta.ws.rs.container.ContainerRequestContext
    • getSecurityContext

      public jakarta.ws.rs.core.SecurityContext getSecurityContext()
      Specified by:
      getSecurityContext in interface jakarta.ws.rs.container.ContainerRequestContext
    • setSecurityContext

      public void setSecurityContext(jakarta.ws.rs.core.SecurityContext context)
      Specified by:
      setSecurityContext in interface jakarta.ws.rs.container.ContainerRequestContext
    • getRequest

      public jakarta.ws.rs.core.Request getRequest()
      Specified by:
      getRequest in interface jakarta.ws.rs.container.ContainerRequestContext
    • getHeaderString

      public String getHeaderString(String name)
      Specified by:
      getHeaderString in interface jakarta.ws.rs.container.ContainerRequestContext
    • containsHeaderString

      public boolean containsHeaderString(String name, Predicate<String> valuePredicate)
      Specified by:
      containsHeaderString in interface jakarta.ws.rs.container.ContainerRequestContext
    • containsHeaderString

      public boolean containsHeaderString(String name, String valueSeparatorRegex, Predicate<String> valuePredicate)
      Specified by:
      containsHeaderString in interface jakarta.ws.rs.container.ContainerRequestContext
    • 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 with SuspendableContainerRequestContext.resume() or aborted with SuspendableContainerRequestContext.resume(Throwable) or ContainerRequestContext.abortWith(jakarta.ws.rs.core.Response).
      Specified by:
      suspend in interface SuspendableContainerRequestContext
    • abortWith

      public void abortWith(jakarta.ws.rs.core.Response response)
      Specified by:
      abortWith in interface jakarta.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 interface SuspendableContainerRequestContext
    • resume

      public void resume(Throwable t)
      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 interface SuspendableContainerRequestContext
      Parameters:
      t - the exception to send back to the client, as mapped by the application.
    • filter

      public BuiltResponse filter()
    • startedContinuation

      public boolean startedContinuation()