org.apache.camel.component.gae.bind
Interface InboundBinding<E extends org.apache.camel.Endpoint,S,T>

All Known Implementing Classes:
GHttpBinding, GTaskBinding

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

readRequest

org.apache.camel.Exchange readRequest(E endpoint,
                                      org.apache.camel.Exchange exchange,
                                      S request)
                                      throws Exception
Populates an Exchange from request data and endpoint configuration data.

Parameters:
endpoint - endpoint providing binding-relevant information.
exchange - exchange to be populated or created (if null) from request data.
request - request to read data from.
Returns:
the populated exchange.
Throws:
Exception

writeResponse

T writeResponse(E endpoint,
                org.apache.camel.Exchange exchange,
                T response)
                throws Exception
Creates or populates a response object from Exchange and endpoint configuration data.

Parameters:
endpoint - endpoint providing binding-relevant information.
exchange - exchange to read data from.
response - to be populated or created (if null) from exchange data.
Returns:
the populated response.
Throws:
Exception


Apache Camel