Class AbstractRotator

    • 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
      Rotator bind​(org.apache.http.impl.client.CloseableHttpClient client)  
      protected org.apache.http.impl.client.CloseableHttpClient client()  
      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 configRequest()  
      protected org.apache.http.entity.StringEntity dataJson​(io.vertx.core.json.JsonObject data)  
      protected String dataString​(org.apache.http.HttpResponse response)  
      protected io.vertx.up.log.Annal logger()  
      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)  
    • Constructor Detail

      • AbstractRotator

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

      • 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)
      • 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()