|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface InboundBinding<E extends org.apache.camel.Endpoint,S,T>
Represents the binding of request and response types to an 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.
| Method Summary | |
|---|---|
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. |
| Method Detail |
|---|
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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||