Package io.vertx.up.uca.cosmic
Class AbstractRotator
java.lang.Object
io.vertx.up.uca.cosmic.AbstractRotator
- All Implemented Interfaces:
Rotator
- Direct Known Subclasses:
DeleteRotator,GetRotator,PostRotator,PutRotator
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbind(org.apache.http.impl.client.CloseableHttpClient client) protected org.apache.http.impl.client.CloseableHttpClientclient()protected voidconfigHeader(org.apache.http.client.methods.HttpRequestBase request, io.vertx.core.json.JsonObject headers) protected StringconfigPath(io.vertx.up.commune.config.IntegrationRequest request, io.vertx.core.json.JsonObject params) protected org.apache.http.client.config.RequestConfigprotected org.apache.http.entity.StringEntitydataJson(io.vertx.core.json.JsonObject data) protected StringdataString(org.apache.http.HttpResponse response) protected io.horizon.uca.log.Annallogger()protected StringsendEntity(org.apache.http.client.methods.HttpEntityEnclosingRequestBase request, org.apache.http.HttpEntity body, io.vertx.core.json.JsonObject headers) protected StringsendUrl(org.apache.http.client.methods.HttpRequestBase request, io.vertx.core.json.JsonObject headers)
-
Constructor Details
-
AbstractRotator
public AbstractRotator(io.vertx.up.commune.config.Integration integration)
-
-
Method Details
-
bind
-
configRequest
protected org.apache.http.client.config.RequestConfig configRequest() -
configPath
protected String configPath(io.vertx.up.commune.config.IntegrationRequest request, io.vertx.core.json.JsonObject params) -
configHeader
protected void configHeader(org.apache.http.client.methods.HttpRequestBase request, io.vertx.core.json.JsonObject headers) -
dataJson
protected org.apache.http.entity.StringEntity dataJson(io.vertx.core.json.JsonObject data) -
dataString
- Throws:
IOException
-
client
protected org.apache.http.impl.client.CloseableHttpClient client() -
sendEntity
protected String sendEntity(org.apache.http.client.methods.HttpEntityEnclosingRequestBase request, org.apache.http.HttpEntity body, io.vertx.core.json.JsonObject headers) -
sendUrl
protected String sendUrl(org.apache.http.client.methods.HttpRequestBase request, io.vertx.core.json.JsonObject headers) -
logger
protected io.horizon.uca.log.Annal logger()
-