Class HttpRequestEncoder

  • All Implemented Interfaces:
    IRequestEncoder

    public class HttpRequestEncoder
    extends java.lang.Object
    implements IRequestEncoder
    encodes a request by serializing it.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static org.slf4j.Logger logger  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object decode​(java.lang.String s)
      Dncodes a String into an object.
      java.lang.String encode​(java.lang.Object r)
      Encodes a request object.
      • Methods inherited from class java.lang.Object

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

      • logger

        public static org.slf4j.Logger logger
    • Constructor Detail

      • HttpRequestEncoder

        public HttpRequestEncoder()
    • Method Detail

      • encode

        public java.lang.String encode​(java.lang.Object r)
                                throws java.io.IOException
        Description copied from interface: IRequestEncoder
        Encodes a request object.
        Specified by:
        encode in interface IRequestEncoder
        Parameters:
        r - Object to serve as the source of the message.
        Returns:
        String containing encoded message.
        Throws:
        java.io.IOException - Failure of the encoding operation due to IO error.
      • decode

        public java.lang.Object decode​(java.lang.String s)
                                throws java.io.IOException
        Description copied from interface: IRequestEncoder
        Dncodes a String into an object.
        Specified by:
        decode in interface IRequestEncoder
        Returns:
        Object which is the result of the decoded message.
        Throws:
        java.io.IOException - Failure of the decoding operation due to IO error.