public interface InboundBinding<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 InboundBinding is used
by Consumer
implementations or their clients to translate between
protocol-specific or services-specific messages and Exchange
objects.Modifier and Type | Method and Description |
---|---|
org.apache.camel.Exchange |
readRequest(E endpoint,
org.apache.camel.Exchange exchange,
S request)
Populates an
Exchange from request data and endpoint configuration data. |
T |
writeResponse(E endpoint,
org.apache.camel.Exchange exchange,
T response)
Creates or populates a response object from
Exchange and endpoint configuration data. |
org.apache.camel.Exchange readRequest(E endpoint, org.apache.camel.Exchange exchange, S request) throws Exception
Exchange
from request data and endpoint configuration data.endpoint
- endpoint providing binding-relevant information.exchange
- exchange to be populated or created (if null
) from request data.request
- request to read data from.Exception
T writeResponse(E endpoint, org.apache.camel.Exchange exchange, T response) throws Exception
Exchange
and endpoint configuration data.endpoint
- endpoint providing binding-relevant information.exchange
- exchange to read data from.response
- to be populated or created (if null
) from exchange data.Exception
Apache Camel