Class ServerRequestWrapper.HeadersWrapper

  • java.lang.Object
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.util.List<MediaType> accept()
      Get the list of acceptable media types, as specified by the Accept header.
      java.util.List<java.nio.charset.Charset> acceptCharset()
      Get the list of acceptable charsets, as specified by the Accept-Charset header.
      java.util.List<java.util.Locale.LanguageRange> acceptLanguage()
      Get the list of acceptable languages, as specified by the Accept-Language header.
      HttpHeaders asHttpHeaders()
      Get the headers as an instance of HttpHeaders.
      java.util.OptionalLong contentLength()
      Get the length of the body in bytes, as specified by the Content-Length header.
      java.util.Optional<MediaType> contentType()
      Get the media type of the body, as specified by the Content-Type header.
      java.util.List<java.lang.String> header(java.lang.String headerName)
      Get the header value(s), if any, for the header of the given name. host()
      Get the value of the required Host header.
      java.util.List<HttpRange> range()
      Get the value of the Range header.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • HeadersWrapper

        public HeadersWrapper(ServerRequest.Headers headers)
        Create a new HeadersWrapper that wraps the given request.
        headers - the headers to wrap