org.apache.camel.component.restlet
Class DefaultRestletBinding

java.lang.Object
  extended by org.apache.camel.component.restlet.DefaultRestletBinding
All Implemented Interfaces:
RestletBinding, HeaderFilterStrategyAware

public class DefaultRestletBinding
extends Object
implements RestletBinding, HeaderFilterStrategyAware

Default Restlet binding implementation


Constructor Summary
DefaultRestletBinding()
           
 
Method Summary
 HeaderFilterStrategy getHeaderFilterStrategy()
          Gets the header filter strategy used
 void populateExchangeFromRestletRequest(org.restlet.Request request, org.restlet.Response response, Exchange exchange)
          Populate Camel message from Restlet request
 void populateExchangeFromRestletResponse(Exchange exchange, org.restlet.Response response)
          Populate Camel message from Restlet response
 void populateRestletRequestFromExchange(org.restlet.Request request, Exchange exchange)
          Populate Restlet Request from Camel message
 void populateRestletResponseFromExchange(Exchange exchange, org.restlet.Response response)
          Populate Restlet request from Camel message
 void setHeaderFilterStrategy(HeaderFilterStrategy strategy)
          Sets the header filter strategy to use
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultRestletBinding

public DefaultRestletBinding()
Method Detail

populateExchangeFromRestletRequest

public void populateExchangeFromRestletRequest(org.restlet.Request request,
                                               org.restlet.Response response,
                                               Exchange exchange)
                                        throws Exception
Description copied from interface: RestletBinding
Populate Camel message from Restlet request

Specified by:
populateExchangeFromRestletRequest in interface RestletBinding
Parameters:
request - message to be copied from
exchange - to be populated @throws Exception is thrown if error processing
Throws:
Exception

populateRestletRequestFromExchange

public void populateRestletRequestFromExchange(org.restlet.Request request,
                                               Exchange exchange)
Description copied from interface: RestletBinding
Populate Restlet Request from Camel message

Specified by:
populateRestletRequestFromExchange in interface RestletBinding
Parameters:
request - to be populated
exchange - message to be copied from

populateRestletResponseFromExchange

public void populateRestletResponseFromExchange(Exchange exchange,
                                                org.restlet.Response response)
Description copied from interface: RestletBinding
Populate Restlet request from Camel message

Specified by:
populateRestletResponseFromExchange in interface RestletBinding
Parameters:
exchange - message to be copied from
response - to be populated

populateExchangeFromRestletResponse

public void populateExchangeFromRestletResponse(Exchange exchange,
                                                org.restlet.Response response)
                                         throws Exception
Description copied from interface: RestletBinding
Populate Camel message from Restlet response

Specified by:
populateExchangeFromRestletResponse in interface RestletBinding
Parameters:
exchange - to be populated
response - message to be copied from
Throws:
Exception - is thrown if error processing

getHeaderFilterStrategy

public HeaderFilterStrategy getHeaderFilterStrategy()
Description copied from interface: HeaderFilterStrategyAware
Gets the header filter strategy used

Specified by:
getHeaderFilterStrategy in interface HeaderFilterStrategyAware
Returns:
the strategy

setHeaderFilterStrategy

public void setHeaderFilterStrategy(HeaderFilterStrategy strategy)
Description copied from interface: HeaderFilterStrategyAware
Sets the header filter strategy to use

Specified by:
setHeaderFilterStrategy in interface HeaderFilterStrategyAware
Parameters:
strategy - the strategy


Apache CAMEL