|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.camel.component.jetty.DefaultJettyHttpBinding
public class DefaultJettyHttpBinding
| Constructor Summary | |
|---|---|
DefaultJettyHttpBinding()
|
|
| Method Summary | |
|---|---|
protected String |
extractResponseBody(Exchange exchange,
JettyContentExchange httpExchange)
|
HeaderFilterStrategy |
getHeaderFilterStrategy()
Gets the header filter strategy |
boolean |
isThrowExceptionOnFailure()
Whether to throw HttpOperationFailedException
in case of response code != 200. |
protected HttpOperationFailedException |
populateHttpOperationFailedException(Exchange exchange,
JettyContentExchange httpExchange,
int responseCode)
|
void |
populateResponse(Exchange exchange,
JettyContentExchange httpExchange)
Parses the response from the Jetty client. |
protected void |
populateResponse(Exchange exchange,
JettyContentExchange httpExchange,
Message in,
HeaderFilterStrategy strategy,
int responseCode)
|
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. |
| 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(Exchange exchange,
JettyContentExchange httpExchange)
throws Exception
JettyHttpBinding
populateResponse in interface JettyHttpBindingexchange - the Exchange which to populate with the responsehttpExchange - the response from the Jetty client
Exception - is thrown if error parsing responsepublic HeaderFilterStrategy getHeaderFilterStrategy()
JettyHttpBinding
getHeaderFilterStrategy in interface JettyHttpBindingpublic void setHeaderFilterStrategy(HeaderFilterStrategy headerFilterStrategy)
JettyHttpBindingHttpHeaderFilterStrategy
setHeaderFilterStrategy in interface JettyHttpBindingheaderFilterStrategy - the custom strategypublic boolean isThrowExceptionOnFailure()
JettyHttpBindingHttpOperationFailedException
in case of response code != 200.
isThrowExceptionOnFailure in interface JettyHttpBindingpublic void setThrowExceptionOnFailure(boolean throwExceptionOnFailure)
JettyHttpBindingHttpOperationFailedException
in case of response code != 200.
setThrowExceptionOnFailure in interface JettyHttpBindingthrowExceptionOnFailure - true to throw exception
protected void populateResponse(Exchange exchange,
JettyContentExchange httpExchange,
Message in,
HeaderFilterStrategy strategy,
int responseCode)
throws IOException
IOException
protected HttpOperationFailedException populateHttpOperationFailedException(Exchange exchange,
JettyContentExchange httpExchange,
int responseCode)
throws IOException
IOException
protected String extractResponseBody(Exchange exchange,
JettyContentExchange httpExchange)
throws IOException
IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||