OrigRequest
- Type of the original request object.public interface ProtocolRequestMarshaller<OrigRequest> extends ProtocolMarshaller
Request
object which represents an HTTP request.
Example Usage:
ProtocolRequestMarshaller<FooRequest> = createProtocolMarshaller(...);
protocolMarshaller.startMarshalling();
protocolMarshaller.marshall(obj, marshallingInfo);
Request<FooRequest> marshalledRequest = protocolMarshaller.finishMarshalling();
Modifier and Type | Method and Description |
---|---|
Request<OrigRequest> |
finishMarshalling()
Finializes the marshalling and produces a
Request object that can be sent for execution. |
void |
startMarshalling()
Hook to perform an initialization that needs to happen at the start of marshalling.
|
marshall
void startMarshalling()
ProtocolMarshaller.marshall(Object, MarshallingInfo)
.Request<OrigRequest> finishMarshalling()
Request
object that can be sent for execution. Must be the last
method called in the marshaller.Request
object.Copyright © 2022. All rights reserved.