Interface AggregatedHttpObject

All Known Subinterfaces:
AggregatedBodyPart, AggregatedHttpMessage, AggregatedHttpRequest, AggregatedHttpResponse

public interface AggregatedHttpObject
A complete HTTP headers and content that are readily available.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the content of this message.
    default String
    content(Charset charset)
    Returns the content decoded in the Charset of the content-type header if present, or the content decoded in the specified Charset otherwise.
    default String
    Returns the content of this message as an ASCII string.
    Returns the value of the 'content-type' header.
    default String
    Returns the content of this message as a UTF-8 string.
    Returns the HTTP headers.
  • Method Details

    • headers

      HttpHeaders headers()
      Returns the HTTP headers.
    • content

      HttpData content()
      Returns the content of this message.
    • content

      default String content(Charset charset)
      Returns the content decoded in the Charset of the content-type header if present, or the content decoded in the specified Charset otherwise.
    • contentUtf8

      default String contentUtf8()
      Returns the content of this message as a UTF-8 string.
    • contentAscii

      default String contentAscii()
      Returns the content of this message as an ASCII string.
    • contentType

      @Nullable default @Nullable MediaType contentType()
      Returns the value of the 'content-type' header.
      Returns:
      the valid header value if present, or null otherwise.