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:
$Revision: 12977 $

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

Method Detail

populateRestletResponseFromExchange

void populateRestletResponseFromExchange(Exchange exchange,
                                         org.restlet.data.Response response)
Populate Restlet request from Camel message

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

populateExchangeFromRestletRequest

void populateExchangeFromRestletRequest(org.restlet.data.Request request,
                                        Exchange exchange)
                                        throws Exception
Populate Camel message from Restlet request

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

populateRestletRequestFromExchange

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

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

populateExchangeFromRestletResponse

void populateExchangeFromRestletResponse(Exchange exchange,
                                         org.restlet.data.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


Copyright © 2007-2010 IONA Open Source Community. All Rights Reserved.