Interface CorsRequestAdapter<T>

Type Parameters:
T - type of the request wrapped by the adapter

public interface CorsRequestAdapter<T>
Not for use by developers. Minimal abstraction of an HTTP request.
  • Method Details

    • path

      String path()
      Returns:
      possibly unnormalized path from the request
    • requestedUri

      UriInfo requestedUri()
      Returns the UriInfo for the request.
      Returns:
      URI info for the request
    • firstHeader

      Optional<String> firstHeader(HeaderName key)
      Retrieves the first value for the specified header as a String.
      Parameters:
      key - header name to retrieve
      Returns:
      the first header value for the key
    • headerContainsKey

      boolean headerContainsKey(HeaderName key)
      Reports whether the specified header exists.
      Parameters:
      key - header name to check for
      Returns:
      whether the header exists among the request's headers
    • allHeaders

      List<String> allHeaders(HeaderName key)
      Retrieves all header values for a given key as Strings.
      Parameters:
      key - header name to retrieve
      Returns:
      header values for the header; empty list if none
    • method

      String method()
      Reports the method name for the request.
      Returns:
      the method name
    • next

      void next()
      Processes the next handler/filter/request processor in the chain.
    • request

      T request()
      Returns the request this adapter wraps.
      Returns:
      the request