Package com.netscape.certsrv.connector
Interface IRequestEncoder
-
- All Known Implementing Classes:
HttpRequestEncoder
public interface IRequestEncoderThis 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$, $Date$
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Objectdecode(java.lang.String s)Dncodes a String into an object.java.lang.Stringencode(java.lang.Object r)Encodes a request object.
-
-
-
Method Detail
-
encode
java.lang.String encode(java.lang.Object r) throws java.io.IOExceptionEncodes 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.IOExceptionDncodes 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.
-
-