|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.camel.component.jetty.DefaultJettyHttpBinding
public class DefaultJettyHttpBinding
Constructor Summary | |
---|---|
DefaultJettyHttpBinding()
|
Method Summary | |
---|---|
protected Object |
extractResponseBody(org.apache.camel.Exchange exchange,
JettyContentExchange httpExchange)
|
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 |
protected Exception |
populateHttpOperationFailedException(org.apache.camel.Exchange exchange,
JettyContentExchange httpExchange,
int responseCode)
|
void |
populateResponse(org.apache.camel.Exchange exchange,
JettyContentExchange httpExchange)
Parses the response from the Jetty client. |
protected void |
populateResponse(org.apache.camel.Exchange exchange,
JettyContentExchange httpExchange,
org.apache.camel.Message in,
org.apache.camel.spi.HeaderFilterStrategy strategy,
int responseCode)
|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultJettyHttpBinding()
Method Detail |
---|
public void populateResponse(org.apache.camel.Exchange exchange, JettyContentExchange httpExchange) throws Exception
JettyHttpBinding
populateResponse
in interface JettyHttpBinding
exchange
- the Exchange which to populate with the responsehttpExchange
- the response from the Jetty client
Exception
- is thrown if error parsing responsepublic org.apache.camel.spi.HeaderFilterStrategy getHeaderFilterStrategy()
JettyHttpBinding
getHeaderFilterStrategy
in interface JettyHttpBinding
public void setHeaderFilterStrategy(org.apache.camel.spi.HeaderFilterStrategy headerFilterStrategy)
JettyHttpBinding
HttpHeaderFilterStrategy
setHeaderFilterStrategy
in interface JettyHttpBinding
headerFilterStrategy
- the custom strategypublic boolean isThrowExceptionOnFailure()
JettyHttpBinding
HttpOperationFailedException
in case of response code != 200.
isThrowExceptionOnFailure
in interface JettyHttpBinding
public void setThrowExceptionOnFailure(boolean throwExceptionOnFailure)
JettyHttpBinding
HttpOperationFailedException
in case of response code != 200.
setThrowExceptionOnFailure
in interface JettyHttpBinding
throwExceptionOnFailure
- true to throw exceptionpublic boolean isTransferException()
JettyHttpBinding
isTransferException
in interface JettyHttpBinding
public void setTransferException(boolean transferException)
JettyHttpBinding
setTransferException
in interface JettyHttpBinding
transferException
- true to transfer exceptionprotected void populateResponse(org.apache.camel.Exchange exchange, JettyContentExchange httpExchange, org.apache.camel.Message in, org.apache.camel.spi.HeaderFilterStrategy strategy, int responseCode) throws IOException
IOException
protected Exception populateHttpOperationFailedException(org.apache.camel.Exchange exchange, JettyContentExchange httpExchange, int responseCode) throws IOException
IOException
protected Object extractResponseBody(org.apache.camel.Exchange exchange, JettyContentExchange httpExchange) throws IOException
IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |