Class RestClient

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable

    public class RestClient
    extends java.lang.Object
    implements java.io.Closeable
    • Field Detail

      • id

        public final java.lang.String id
    • Method Detail

      • with

        public static RestClient with​(org.apache.http.impl.client.HttpClientBuilder clientBuilder)
      • with

        public static RestClient with​(org.apache.http.impl.client.HttpClientBuilder clientBuilder,
                                      org.apache.http.impl.nio.client.HttpAsyncClientBuilder asyncClientBuilder)
      • get

        public GetRequest get​(java.lang.String... url)
      • head

        public GetRequest head​(java.lang.String... url)
      • cookieStore

        public org.apache.http.client.CookieStore cookieStore()
      • close

        public void close()
        Close the asynchronous client and its event loop. Use this method to close all the threads and allow an application to exit.
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable