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.Logger
logger
-
Constructor Summary
Constructors Constructor Description HttpRequestEncoder()
-
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.
-
-
-
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 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.IOException
Description copied from interface:IRequestEncoder
Dncodes a String into an object.- Specified by:
decode
in interfaceIRequestEncoder
- Returns:
- Object which is the result of the decoded message.
- Throws:
java.io.IOException
- Failure of the decoding operation due to IO error.
-
-