Class Http1TestClient

All Implemented Interfaces:
AutoCloseable, org.apache.hc.core5.reactor.ConnectionInitiator

public class Http1TestClient extends HttpTestClient
  • Constructor Details

    • Http1TestClient

      public Http1TestClient(org.apache.hc.core5.reactor.IOReactorConfig ioReactorConfig, SSLContext sslContext, org.apache.hc.core5.reactor.ssl.SSLSessionInitializer sslSessionInitializer, org.apache.hc.core5.reactor.ssl.SSLSessionVerifier sslSessionVerifier) throws IOException
      Throws:
      IOException
    • Http1TestClient

      public Http1TestClient() throws IOException
      Throws:
      IOException
  • Method Details

    • configure

      public void configure(org.apache.hc.core5.http.config.Http1Config http1Config)
      Since:
      5.3
    • configure

      public void configure(org.apache.hc.core5.http.nio.NHttpMessageParserFactory<org.apache.hc.core5.http.HttpResponse> responseParserFactory)
      Since:
      5.4
    • configure

      public void configure(org.apache.hc.core5.http.nio.NHttpMessageWriterFactory<org.apache.hc.core5.http.HttpRequest> requestWriterFactory)
      Since:
      5.4
    • start

      @Deprecated public void start(org.apache.hc.core5.http.protocol.HttpProcessor httpProcessor, org.apache.hc.core5.http.config.Http1Config http1Config) throws IOException
      Throws:
      IOException
    • start

      @Deprecated public void start(org.apache.hc.core5.http.config.Http1Config http1Config) throws IOException
      Deprecated.
      Throws:
      IOException
    • start

      public void start() throws IOException
      Specified by:
      start in class HttpTestClient
      Throws:
      IOException
    • execute

      protected void execute(org.apache.hc.core5.reactor.IOEventHandlerFactory ioEventHandlerFactory) throws IOException
      Throws:
      IOException
    • getStatus

      public org.apache.hc.core5.reactor.IOReactorStatus getStatus()
    • awaitShutdown

      public void awaitShutdown(org.apache.hc.core5.util.TimeValue waitTime) throws InterruptedException
      Throws:
      InterruptedException
    • initiateShutdown

      public void initiateShutdown()
    • shutdown

      public void shutdown(org.apache.hc.core5.util.TimeValue graceTime)
    • close

      public void close() throws Exception
      Specified by:
      close in interface AutoCloseable
      Throws:
      Exception