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
public abstract class AbstractRotator extends Object implements Rotator
-
-
Constructor Summary
Constructors Constructor Description AbstractRotator(io.vertx.up.commune.config.Integration integration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Rotatorbind(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.RequestConfigconfigRequest()protected org.apache.http.entity.StringEntitydataJson(io.vertx.core.json.JsonObject data)protected StringdataString(org.apache.http.HttpResponse response)protected io.vertx.up.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)
-
-
-
Method Detail
-
bind
public Rotator bind(org.apache.http.impl.client.CloseableHttpClient client)
-
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
protected String dataString(org.apache.http.HttpResponse response) throws IOException
- 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.vertx.up.log.Annal logger()
-
-