org.jboss.resteasy.core.interception

## Class PostMatchContainerRequestContext

- java.lang.Object
- - org.jboss.resteasy.core.interception.PreMatchContainerRequestContext
  - - org.jboss.resteasy.core.interception.PostMatchContainerRequestContext

- All Implemented Interfaces:
    ContainerRequestContext

      public class PostMatchContainerRequestContext
      extends PreMatchContainerRequestContext

  Version:
    $Revision: 1 $
  Author:
    Bill Burke

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `protected ResourceMethodInvoker` | `resourceMethod`

    - ### Fields inherited from class org.jboss.resteasy.core.interception.PreMatchContainerRequestContext

      `httpRequest, response`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `PostMatchContainerRequestContext(HttpRequest request, ResourceMethodInvoker resourceMethod)`

  - ### Method Summary

    Methods
    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.

    - ### Methods inherited from class org.jboss.resteasy.core.interception.PreMatchContainerRequestContext

      `abortWith, getAcceptableLanguages, getAcceptableMediaTypes, getCookies, getDate, getEntityStream, getHeaders, getHeaderString, getHttpRequest, getLanguage, getLength, getMediaType, getMethod, getProperty, getPropertyNames, getRequest, getResponseAbortedWith, getSecurityContext, getUriInfo, hasEntity, removeProperty, setEntityStream, setProperty, setSecurityContext`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Field Detail

    - #### resourceMethod

          protected final ResourceMethodInvoker resourceMethod

  - ### Constructor Detail

    - #### PostMatchContainerRequestContext

          public PostMatchContainerRequestContext(HttpRequest request,
                                          ResourceMethodInvoker resourceMethod)

  - ### Method Detail

    - #### getResourceMethod

          public ResourceMethodInvoker getResourceMethod()

    - #### setMethod

          public void setMethod(String method)

      Description copied from interface: `ContainerRequestContext`
      Set 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 `IllegalStateException` being thrown.

      Specified by:
        `setMethod` in interface `ContainerRequestContext`
      Overrides:
        `setMethod` in class `PreMatchContainerRequestContext`
      Parameters:
        `method` - new request method.
      See Also:
        `HttpMethod`

    - #### setRequestUri

          public void setRequestUri(URI requestUri)
                             throws IllegalStateException

      Description copied from interface: `ContainerRequestContext`
      Set 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 `IllegalStateException` being thrown.

      Specified by:
        `setRequestUri` in interface `ContainerRequestContext`
      Overrides:
        `setRequestUri` in class `PreMatchContainerRequestContext`
      Parameters:
        `requestUri` - new URI of the request.
      Throws:
        `IllegalStateException` - in case the method is not invoked from a `pre-matching` request 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: `ContainerRequestContext`
      Set 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 `IllegalStateException` being thrown.

      Specified by:
        `setRequestUri` in interface `ContainerRequestContext`
      Overrides:
        `setRequestUri` in class `PreMatchContainerRequestContext`
      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 a `pre-matching` request filter.
      See Also:
        `ContainerRequestContext.setRequestUri(java.net.URI)`

Copyright © 2014. All Rights Reserved.