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

    Modifier and Type
    Method
    Description
    bind(org.apache.http.impl.client.CloseableHttpClient client)
     
    protected org.apache.http.impl.client.CloseableHttpClient
     
    protected void
    configHeader(org.apache.http.client.methods.HttpRequestBase request, io.vertx.core.json.JsonObject headers)
     
    protected String
    configPath(io.vertx.up.commune.config.IntegrationRequest request, io.vertx.core.json.JsonObject params)
     
    protected org.apache.http.client.config.RequestConfig
     
    protected org.apache.http.entity.StringEntity
    dataJson(io.vertx.core.json.JsonObject data)
     
    protected String
    dataString(org.apache.http.HttpResponse response)
     
    protected io.horizon.uca.log.Annal
     
    protected String
    sendEntity(org.apache.http.client.methods.HttpEntityEnclosingRequestBase request, org.apache.http.HttpEntity body, io.vertx.core.json.JsonObject headers)
     
    protected String
    sendUrl(org.apache.http.client.methods.HttpRequestBase request, io.vertx.core.json.JsonObject headers)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface io.vertx.up.uca.cosmic.Rotator

    request
  • Constructor Details

    • AbstractRotator

      public AbstractRotator(io.vertx.up.commune.config.Integration integration)
  • Method Details

    • bind

      public Rotator bind(org.apache.http.impl.client.CloseableHttpClient client)
      Specified by:
      bind in interface Rotator
    • 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.horizon.uca.log.Annal logger()