Package org.apache.tapestry5.http

## Enum CorsHandlerResult

- java.lang.Object
- - java.lang.Enum<CorsHandlerResult>
  - - org.apache.tapestry5.http.CorsHandlerResult

- All Implemented Interfaces:
    `java.io.Serializable`, `java.lang.Comparable<CorsHandlerResult>`

      public enum CorsHandlerResult
      extends java.lang.Enum<CorsHandlerResult>

  Enumeration that defines the possible outcomes of `CorsHandler.handle(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)`
  Since:
    5.8.2
  See Also:
    `CorsHandler`, `CorsHttpServletRequestFilter`

- - ### Enum Constant Summary

    Enum Constants
    Enum Constant | Description
    --- | ---
    `CONTINUE_CORS_PROCESSING` | The next CorsHandler should be called.
    `CONTINUE_REQUEST_PROCESSING` | No other CorsHandler should be called and request processing should resume (i.e.
    `STOP_REQUEST_PROCESSING` | The request processing should stop immediately.

  - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `static CorsHandlerResult` | `valueOf​(java.lang.String name)` | Returns the enum constant of this type with the specified name.
    `static CorsHandlerResult[]` | `values()` | Returns an array containing the constants of this enum type, in the order they are declared.

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

      `clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf`

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

      `getClass, notify, notifyAll, wait, wait, wait`

- - ### Enum Constant Detail

    - #### CONTINUE_CORS_PROCESSING

          public static final CorsHandlerResult CONTINUE_CORS_PROCESSING

      The next CorsHandler should be called. Usually returned when the CORS handler didn't actually processed the request.

    - #### CONTINUE_REQUEST_PROCESSING

          public static final CorsHandlerResult CONTINUE_REQUEST_PROCESSING

      No other CorsHandler should be called and request processing should resume (i.e. CorsHttpServletRequestFilter calls `HttpServletRequestFilter.service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, org.apache.tapestry5.http.services.HttpServletRequestHandler)`. Usually returned when the handler actually processed the request.

    - #### STOP_REQUEST_PROCESSING

          public static final CorsHandlerResult STOP_REQUEST_PROCESSING

      The request processing should stop immediately. Usually used with CORS preflight requests.

  - ### Method Detail

    - #### values

          public static CorsHandlerResult[] values()

      Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:

          for (CorsHandlerResult c : CorsHandlerResult.values())
              System.out.println(c);

      Returns:
        an array containing the constants of this enum type, in the order they are declared

    - #### valueOf

          public static CorsHandlerResult valueOf​(java.lang.String name)

      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
        `name` - the name of the enum constant to be returned.
      Returns:
        the enum constant with the specified name
      Throws:
        `java.lang.IllegalArgumentException` - if this enum type has no constant with the specified name
        `java.lang.NullPointerException` - if the argument is null