Class HttpRequestEncoder

java.lang.Object
com.netscape.cmscore.connector.HttpRequestEncoder
All Implemented Interfaces:
IRequestEncoder

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

    • logger

      public static org.slf4j.Logger logger
  • Constructor Details

    • HttpRequestEncoder

      public HttpRequestEncoder()
  • Method Details

    • encode

      public String encode(Object r) throws 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:
      IOException - Failure of the encoding operation due to IO error.
    • decode

      public Object decode(String s) throws 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:
      IOException - Failure of the decoding operation due to IO error.