public interface VertxHttpBinding
| 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 headerFilterStrategy)
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,
boolean exceptionOnly)
Processes the received
Buffer response body in the HttpResponse |
io.vertx.ext.web.client.HttpRequest<io.vertx.core.buffer.Buffer> prepareHttpRequest(VertxHttpEndpoint endpoint, org.apache.camel.Exchange exchange) throws Exception
HttpRequest by setting up the required host, port & part details specified on the endpoint
configurationExceptionvoid populateRequestHeaders(org.apache.camel.Exchange exchange,
io.vertx.ext.web.client.HttpRequest<io.vertx.core.buffer.Buffer> request,
org.apache.camel.spi.HeaderFilterStrategy strategy)
HttpRequest using the supplied HeaderFilterStrategyvoid 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
HttpResponse returned from the HTTP endpoint invocationExceptionvoid populateResponseHeaders(org.apache.camel.Exchange exchange,
io.vertx.ext.web.client.HttpResponse<io.vertx.core.buffer.Buffer> response,
org.apache.camel.spi.HeaderFilterStrategy headerFilterStrategy)
HttpResponse using the supplied
HeaderFilterStrategyObject processResponseBody(VertxHttpEndpoint endpoint, org.apache.camel.Exchange exchange, io.vertx.ext.web.client.HttpResponse<io.vertx.core.buffer.Buffer> result, boolean exceptionOnly) throws Exception
Buffer response body in the HttpResponseExceptionThrowable handleResponseFailure(VertxHttpEndpoint endpoint, org.apache.camel.Exchange exchange, io.vertx.ext.web.client.HttpResponse<io.vertx.core.buffer.Buffer> result) throws Exception
HttpResponseExceptionApache Camel