Interface HttpMessage

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      ByteArray asBytes()
      This method is used to get the message as a byte array.
      ByteArray body()
      This method is used to get the body of a message as a byte array.
      java.lang.String bodyAsString()
      This method is used to get the body of a message as a String.
      int bodyOffset()
      This method is used to obtain the offset within the message where the message body begins.
      java.util.List<HttpHeader> headers()
      This method is used to obtain the HTTP headers contained in the message.
      java.lang.String toString()
      This method is used to get the message as a String.
    • Method Detail

      • headers

        java.util.List<HttpHeader> headers()
        This method is used to obtain the HTTP headers contained in the message.
        Returns:
        A list of HTTP headers.
      • bodyOffset

        int bodyOffset()
        This method is used to obtain the offset within the message where the message body begins.
        Returns:
        The message body offset.
      • asBytes

        ByteArray asBytes()
        This method is used to get the message as a byte array.
        Returns:
        The message as a byte array.
      • toString

        java.lang.String toString()
        This method is used to get the message as a String.
        Overrides:
        toString in class java.lang.Object
        Returns:
        The message as a String.
      • body

        ByteArray body()
        This method is used to get the body of a message as a byte array.
        Returns:
        The body of a message as a byte array.
      • bodyAsString

        java.lang.String bodyAsString()
        This method is used to get the body of a message as a String.
        Returns:
        The body of a message as a String.