类 HttpTunnelPayload


  • public class HttpTunnelPayload
    extends Object
    Encapsulates a payload data sent via a HTTP tunnel.
    从以下版本开始:
    1.3.0
    • 字段详细资料

      • HEX_CHARS

        protected static final char[] HEX_CHARS
    • 方法详细资料

      • getSequence

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

        public void assignTo​(org.springframework.http.HttpOutputMessage message)
                      throws IOException
        Assign this payload to the given HttpOutputMessage.
        参数:
        message - the message to assign this payload to
        抛出:
        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.
        参数:
        message - the HTTP message
        返回:
        the payload or null
        抛出:
        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.
        返回:
        the payload as a hex string