Interface RequestView


  • public interface RequestView
    Read-only view of the request for use by SecurityResponseFilters.
    Author:
    Tony Vaagenes
    • Method Detail

      • getHeaders

        List<String> getHeaders​(String name)
        Returns an immutable view of all values of a named header field. Returns an empty list if no such header is present.
      • getFirstHeader

        Optional<String> getFirstHeader​(String name)
        Convenience method for retrieving the first value of a named header field. Returns empty if the header is not set, or if the value list is empty.
      • getMethod

        Optional<HttpRequest.Method> getMethod()
        Returns the Http method. Only present if the underlying request has http-like semantics.
      • getUri

        URI getUri()