public interface JettyHttpBinding
| Modifier and Type | Method and Description |
|---|---|
org.apache.camel.spi.HeaderFilterStrategy |
getHeaderFilterStrategy()
Gets the header filter strategy
|
String |
getOkStatusCodeRange()
The status codes which are considered a success response.
|
boolean |
isAllowJavaSerializedObject()
Whether to allow java serialization when a request uses context-type=application/x-java-serialized-object
This is by default turned off.
|
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
This is by default turned off.
|
void |
populateResponse(org.apache.camel.Exchange exchange,
JettyContentExchange httpExchange)
Parses the response from the Jetty client.
|
void |
setAllowJavaSerializedObject(boolean allowJavaSerializedObject)
Whether to allow java serialization when a request uses context-type=application/x-java-serialized-object
This is by default turned off.
|
void |
setHeaderFilterStrategy(org.apache.camel.spi.HeaderFilterStrategy headerFilterStrategy)
Sets the header filter strategy to use.
|
void |
setOkStatusCodeRange(String okStatusCodeRange)
The status codes which are 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
This is by default turned off.
|
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()
void setAllowJavaSerializedObject(boolean allowJavaSerializedObject)
allowJavaSerializedObject - true to allow serializing java objectsboolean isAllowJavaSerializedObject()
String getOkStatusCodeRange()
void setOkStatusCodeRange(String okStatusCodeRange)
Apache Camel