public class DefaultVertxHttpBinding extends Object implements VertxHttpBinding
| Constructor and Description |
|---|
DefaultVertxHttpBinding() |
| Modifier and Type | Method and Description |
|---|---|
void |
handleResponse(VertxHttpEndpoint endpoint,
org.apache.camel.Exchange exchange,
io.vertx.core.AsyncResult<io.vertx.ext.web.client.HttpResponse<io.vertx.core.buffer.Buffer>> response)
Handles the
HttpResponse returned from the HTTP endpoint invocation |
Throwable |
handleResponseFailure(VertxHttpEndpoint endpoint,
org.apache.camel.Exchange exchange,
io.vertx.ext.web.client.HttpResponse<io.vertx.core.buffer.Buffer> result)
Handles failures returned in the
HttpResponse |
void |
populateRequestHeaders(org.apache.camel.Exchange exchange,
io.vertx.ext.web.client.HttpRequest<io.vertx.core.buffer.Buffer> request,
org.apache.camel.spi.HeaderFilterStrategy strategy)
Populates request headers on the
HttpRequest using the supplied HeaderFilterStrategy |
void |
populateResponseHeaders(org.apache.camel.Exchange exchange,
io.vertx.ext.web.client.HttpResponse<io.vertx.core.buffer.Buffer> response,
org.apache.camel.spi.HeaderFilterStrategy strategy)
Populates response headers on the exchange from the
HttpResponse using the supplied
HeaderFilterStrategy |
io.vertx.ext.web.client.HttpRequest<io.vertx.core.buffer.Buffer> |
prepareHttpRequest(VertxHttpEndpoint endpoint,
org.apache.camel.Exchange exchange)
Prepares a
HttpRequest by setting up the required host, port & part details specified on the endpoint
configuration |
Object |
processResponseBody(VertxHttpEndpoint endpoint,
org.apache.camel.Exchange exchange,
io.vertx.ext.web.client.HttpResponse<io.vertx.core.buffer.Buffer> result) |
Object |
processResponseBody(VertxHttpEndpoint endpoint,
org.apache.camel.Exchange exchange,
io.vertx.ext.web.client.HttpResponse<io.vertx.core.buffer.Buffer> result,
boolean exceptionOnly)
Processes the received
Buffer response body in the HttpResponse |
public io.vertx.ext.web.client.HttpRequest<io.vertx.core.buffer.Buffer> prepareHttpRequest(VertxHttpEndpoint endpoint, org.apache.camel.Exchange exchange) throws Exception
VertxHttpBindingHttpRequest by setting up the required host, port & part details specified on the endpoint
configurationprepareHttpRequest in interface VertxHttpBindingExceptionpublic void populateRequestHeaders(org.apache.camel.Exchange exchange,
io.vertx.ext.web.client.HttpRequest<io.vertx.core.buffer.Buffer> request,
org.apache.camel.spi.HeaderFilterStrategy strategy)
VertxHttpBindingHttpRequest using the supplied HeaderFilterStrategypopulateRequestHeaders in interface VertxHttpBindingpublic void handleResponse(VertxHttpEndpoint endpoint, org.apache.camel.Exchange exchange, io.vertx.core.AsyncResult<io.vertx.ext.web.client.HttpResponse<io.vertx.core.buffer.Buffer>> response) throws Exception
VertxHttpBindingHttpResponse returned from the HTTP endpoint invocationhandleResponse in interface VertxHttpBindingExceptionpublic void populateResponseHeaders(org.apache.camel.Exchange exchange,
io.vertx.ext.web.client.HttpResponse<io.vertx.core.buffer.Buffer> response,
org.apache.camel.spi.HeaderFilterStrategy strategy)
VertxHttpBindingHttpResponse using the supplied
HeaderFilterStrategypopulateResponseHeaders in interface VertxHttpBindingpublic Object processResponseBody(VertxHttpEndpoint endpoint, org.apache.camel.Exchange exchange, io.vertx.ext.web.client.HttpResponse<io.vertx.core.buffer.Buffer> result, boolean exceptionOnly) throws Exception
VertxHttpBindingBuffer response body in the HttpResponseprocessResponseBody in interface VertxHttpBindingExceptionpublic Object processResponseBody(VertxHttpEndpoint endpoint, org.apache.camel.Exchange exchange, io.vertx.ext.web.client.HttpResponse<io.vertx.core.buffer.Buffer> result) throws Exception
Exceptionpublic Throwable handleResponseFailure(VertxHttpEndpoint endpoint, org.apache.camel.Exchange exchange, io.vertx.ext.web.client.HttpResponse<io.vertx.core.buffer.Buffer> result) throws Exception
VertxHttpBindingHttpResponsehandleResponseFailure in interface VertxHttpBindingExceptionApache Camel