com.netscape.certsrv.connector
Interface IRequestEncoder


public interface IRequestEncoder

This represents a rquest encoder that serializes and deserializes a request to a Remote Authority so that it can be sent through the connector.

Version:
$Revision: 1211 $, $Date: 2010-08-18 10:15:37 -0700 (Wed, 18 Aug 2010) $

Method Summary
 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.
 

Method Detail

encode

java.lang.String encode(java.lang.Object r)
                        throws java.io.IOException
Encodes a request object.

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

java.lang.Object decode(java.lang.String s)
                        throws java.io.IOException
Dncodes a String into an object.

Returns:
Object which is the result of the decoded message.
Throws:
java.io.IOException - Failure of the decoding operation due to IO error.