Package com.netscape.cmscore.connector
Class HttpRequestEncoder
java.lang.Object
com.netscape.cmscore.connector.HttpRequestEncoder
- All Implemented Interfaces:
IRequestEncoder
encodes a request by serializing it.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
logger
public static org.slf4j.Logger logger
-
-
Constructor Details
-
HttpRequestEncoder
public HttpRequestEncoder()
-
-
Method Details
-
encode
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:
IOException
- Failure of the encoding operation due to IO error.
-
decode
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:
IOException
- Failure of the decoding operation due to IO error.
-