org.apache.camel.component.jetty
Interface JettyHttpBinding

All Known Implementing Classes:
DefaultJettyHttpBinding

public interface JettyHttpBinding

Jetty specific binding to parse the response when using JettyHttpProducer

Version:
$Revision: 16347 $

Method Summary
 HeaderFilterStrategy getHeaderFilterStrategy()
          Gets the header filter strategy
 boolean isThrowExceptionOnFailure()
          Whether to throw HttpOperationFailedException in case of response code != 200.
 void populateResponse(Exchange exchange, JettyContentExchange httpExchange)
          Parses the response from the Jetty client.
 void setHeaderFilterStrategy(HeaderFilterStrategy headerFilterStrategy)
          Sets the header filter strategy to use.
 void setThrowExceptionOnFailure(boolean throwExceptionOnFailure)
          Whether to throw HttpOperationFailedException in case of response code != 200.
 

Method Detail

populateResponse

void populateResponse(Exchange exchange,
                      JettyContentExchange httpExchange)
                      throws Exception
Parses the response from the Jetty client.

Parameters:
exchange - the Exchange which to populate with the response
httpExchange - the response from the Jetty client
Throws:
Exception - is thrown if error parsing response

getHeaderFilterStrategy

HeaderFilterStrategy getHeaderFilterStrategy()
Gets the header filter strategy

Returns:
the strategy

setHeaderFilterStrategy

void setHeaderFilterStrategy(HeaderFilterStrategy headerFilterStrategy)
Sets the header filter strategy to use.

Will default use HttpHeaderFilterStrategy

Parameters:
headerFilterStrategy - the custom strategy

setThrowExceptionOnFailure

void setThrowExceptionOnFailure(boolean throwExceptionOnFailure)
Whether to throw HttpOperationFailedException in case of response code != 200.

Parameters:
throwExceptionOnFailure - true to throw exception

isThrowExceptionOnFailure

boolean isThrowExceptionOnFailure()
Whether to throw HttpOperationFailedException in case of response code != 200.

Returns:
true to throw exception


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