public interface JettyHttpBinding
JettyHttpProducer| Modifier and Type | Method and Description |
|---|---|
org.apache.camel.spi.HeaderFilterStrategy |
getHeaderFilterStrategy()
Gets the header filter strategy
|
String |
getOkStatusCodeRange()
The status codes which is considered a success response.
|
boolean |
isThrowExceptionOnFailure()
Whether to throw
HttpOperationFailedException
in case of response code != 200. |
boolean |
isTransferException()
Whether to transfer exception back as a serialized java object
if processing failed due to an exception
|
void |
populateResponse(org.apache.camel.Exchange exchange,
JettyContentExchange httpExchange)
Parses the response from the Jetty client.
|
void |
setHeaderFilterStrategy(org.apache.camel.spi.HeaderFilterStrategy headerFilterStrategy)
Sets the header filter strategy to use.
|
void |
setOkStatusCodeRange(String okStatusCodeRange)
The status codes which is considered a success response.
|
void |
setThrowExceptionOnFailure(boolean throwExceptionOnFailure)
Whether to throw
HttpOperationFailedException
in case of response code != 200. |
void |
setTransferException(boolean transferException)
Whether to transfer exception back as a serialized java object
if processing failed due to an exception
|
void populateResponse(org.apache.camel.Exchange exchange,
JettyContentExchange httpExchange)
throws Exception
exchange - the Exchange which to populate with the responsehttpExchange - the response from the Jetty clientException - is thrown if error parsing responseorg.apache.camel.spi.HeaderFilterStrategy getHeaderFilterStrategy()
void setHeaderFilterStrategy(org.apache.camel.spi.HeaderFilterStrategy headerFilterStrategy)
HttpHeaderFilterStrategyheaderFilterStrategy - the custom strategyvoid setThrowExceptionOnFailure(boolean throwExceptionOnFailure)
HttpOperationFailedException
in case of response code != 200.throwExceptionOnFailure - true to throw exceptionboolean isThrowExceptionOnFailure()
HttpOperationFailedException
in case of response code != 200.void setTransferException(boolean transferException)
transferException - true to transfer exceptionboolean isTransferException()
String getOkStatusCodeRange()
void setOkStatusCodeRange(String okStatusCodeRange)
Apache Camel