|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface JettyHttpBinding
Jetty specific binding to parse the response when using JettyHttpProducer
Method Summary | |
---|---|
org.apache.camel.spi.HeaderFilterStrategy |
getHeaderFilterStrategy()
Gets the header filter strategy |
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 |
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 |
Method Detail |
---|
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 client
Exception
- is thrown if error parsing responseorg.apache.camel.spi.HeaderFilterStrategy getHeaderFilterStrategy()
void setHeaderFilterStrategy(org.apache.camel.spi.HeaderFilterStrategy headerFilterStrategy)
HttpHeaderFilterStrategy
headerFilterStrategy
- 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()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |