Class HttpTunnelPayload

    • Field Detail

      • HEX_CHARS

        protected static final char[] HEX_CHARS
    • Method Detail

      • getSequence

        public long getSequence()
        Return the sequence number of the payload.
        Returns:
        the sequence
      • assignTo

        public void assignTo​(org.springframework.http.HttpOutputMessage message)
                      throws IOException
        Assign this payload to the given HttpOutputMessage.
        Parameters:
        message - the message to assign this payload to
        Throws:
        IOException - in case of I/O errors
      • get

        public static HttpTunnelPayload get​(org.springframework.http.HttpInputMessage message)
                                     throws IOException
        Return the HttpTunnelPayload for the given message or null if there is no payload.
        Parameters:
        message - the HTTP message
        Returns:
        the payload or null
        Throws:
        IOException - in case of I/O errors
      • logIncoming

        public void logIncoming()
        Log incoming payload information at trace level to aid diagnostics.
      • logOutgoing

        public void logOutgoing()
        Log incoming payload information at trace level to aid diagnostics.
      • toHexString

        public String toHexString()
        Return the payload as a hexadecimal string.
        Returns:
        the payload as a hex string