Interface CorsRequestAdapter<T>

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

@Deprecated(forRemoval=true, since="4.4.0") public interface CorsRequestAdapter<T>
Deprecated, for removal: This API element is subject to removal in a future version.
this module will be removed, CORS configuration is centralized to module helidon-webserver-cors with io.helidon.webserver.cors.CorsFeature either from ServiceRegistry, or through one of the feature's static factory or builder methods; paths configured in config are registered first, before paths configured through service registry; this class will be removed in a future version of Helidon
Not for use by developers. Minimal abstraction of an HTTP request.
  • Method Summary

    Modifier and Type
    Method
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
    Retrieves all header values for a given key as Strings.
    Deprecated, for removal: This API element is subject to removal in a future version.
    Retrieves the first value for the specified header as a String.
    boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
    Reports whether the specified header exists.
    Deprecated, for removal: This API element is subject to removal in a future version.
    Reports the method name for the request.
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
    Processes the next handler/filter/request processor in the chain.
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
    Returns the request this adapter wraps.
    Deprecated, for removal: This API element is subject to removal in a future version.
    Returns the UriInfo for the request.
  • Method Details

    • path

      String path()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns:
      possibly unnormalized path from the request
    • requestedUri

      UriInfo requestedUri()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns the UriInfo for the request.
      Returns:
      URI info for the request
    • firstHeader

      Optional<String> firstHeader(HeaderName key)
      Deprecated, for removal: This API element is subject to removal in a future version.
      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)
      Deprecated, for removal: This API element is subject to removal in a future version.
      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)
      Deprecated, for removal: This API element is subject to removal in a future version.
      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()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Reports the method name for the request.
      Returns:
      the method name
    • next

      void next()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Processes the next handler/filter/request processor in the chain.
    • request

      T request()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns the request this adapter wraps.
      Returns:
      the request