org.apache.camel.component.restlet
Interface RestletBinding

All Known Implementing Classes:
DefaultRestletBinding

public interface RestletBinding

Interface for converting between Camel message and Restlet message.

Version:

Method Summary
 void populateExchangeFromRestletRequest(org.restlet.Request request, org.restlet.Response response, org.apache.camel.Exchange exchange)
          Populate Camel message from Restlet request
 void populateExchangeFromRestletResponse(org.apache.camel.Exchange exchange, org.restlet.Response response)
          Populate Camel message from Restlet response
 void populateRestletRequestFromExchange(org.restlet.Request request, org.apache.camel.Exchange exchange)
          Populate Restlet Request from Camel message
 void populateRestletResponseFromExchange(org.apache.camel.Exchange exchange, org.restlet.Response response)
          Populate Restlet request from Camel message
 

Method Detail

populateRestletResponseFromExchange

void populateRestletResponseFromExchange(org.apache.camel.Exchange exchange,
                                         org.restlet.Response response)
                                         throws Exception
Populate Restlet request from Camel message

Parameters:
exchange - message to be copied from
response - to be populated
Throws:
Exception - is thrown if error processing

populateExchangeFromRestletRequest

void populateExchangeFromRestletRequest(org.restlet.Request request,
                                        org.restlet.Response response,
                                        org.apache.camel.Exchange exchange)
                                        throws Exception
Populate Camel message from Restlet request

Parameters:
request - message to be copied from
response - the response
exchange - to be populated @throws Exception is thrown if error processing
Throws:
Exception - is thrown if error processing

populateRestletRequestFromExchange

void populateRestletRequestFromExchange(org.restlet.Request request,
                                        org.apache.camel.Exchange exchange)
Populate Restlet Request from Camel message

Parameters:
request - to be populated
exchange - message to be copied from

populateExchangeFromRestletResponse

void populateExchangeFromRestletResponse(org.apache.camel.Exchange exchange,
                                         org.restlet.Response response)
                                         throws Exception
Populate Camel message from Restlet response

Parameters:
exchange - to be populated
response - message to be copied from
Throws:
Exception - is thrown if error processing


Apache Camel