public interface OutboundBinding<E extends org.apache.camel.Endpoint,S,T>
Exchange.
The request and response types are defined via the type parameters
S and T, respectively. The OutboundBinding is used
by Producer implementations to translate between Exchange
objects and protocol-specific or services-specific messages.| Modifier and Type | Method and Description |
|---|---|
org.apache.camel.Exchange |
readResponse(E endpoint,
org.apache.camel.Exchange exchange,
T response)
Populates an
Exchange from response data and endpoint configuration data. |
S |
writeRequest(E endpoint,
org.apache.camel.Exchange exchange,
S request)
Creates or populates a request object from
Exchange and endpoint configuration data. |
S writeRequest(E endpoint, org.apache.camel.Exchange exchange, S request) throws Exception
Exchange and endpoint configuration data.endpoint - endpoint providing binding-relevant information.exchange - exchange to read data from.request - request to be populated or created (if null) from exchange data.Exceptionorg.apache.camel.Exchange readResponse(E endpoint, org.apache.camel.Exchange exchange, T response) throws Exception
Exchange from response data and endpoint configuration data.endpoint - endpoint providing binding-relevant information.exchange - exchange to be populated or created (if null) from response data.response - response to read data from.ExceptionApache Camel