Package com.netscape.cmscore.connector
Class HttpRequestEncoder
- java.lang.Object
-
- com.netscape.cmscore.connector.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.Loggerlogger
-
Constructor Summary
Constructors Constructor Description HttpRequestEncoder()
-
Method Summary
All Methods Instance Methods Concrete 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
public java.lang.String encode(java.lang.Object r) throws java.io.IOExceptionDescription copied from interface:IRequestEncoderEncodes a request object.- Specified by:
encodein interfaceIRequestEncoder- 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.IOExceptionDescription copied from interface:IRequestEncoderDncodes a String into an object.- Specified by:
decodein interfaceIRequestEncoder- Returns:
- Object which is the result of the decoded message.
- Throws:
java.io.IOException- Failure of the decoding operation due to IO error.
-
-