public interface IRequestBodyListener
IRequestListener
containing only the method to send the request body with.Modifier and Type | Method and Description |
---|---|
java.lang.Object |
onRequestBodySending(ITransmitEvent event)
Invoked when the request body is to be sent.
|
java.lang.Object onRequestBodySending(ITransmitEvent event) throws java.io.IOException
IRequestHeaderListener.onRequestHeaderSending(ISendEvent)
method for that purpose.
It's an error trying to close the stream or the writer from within the implementation of this method.
Implementations are expected to monitor the return value of IBaseEvent.isCancelledExternally()
and return in case it signals true. In this case the return value of this method does
not count. This check can be omitted when writing to the steam or to the writer as they will monitor cancellation state on their own and throw an exception appropriately. The return value
indicates cancellation by this listener. If non-null is returned then the conversation stops and the IConversationFlowListener
gets invoked.
event
- the transmission event, always non-nullIBaseEvent.isCancelledExternally()
returns false.java.io.IOException
- in case of problems writing to the stream/writer