Class JDKHttpClient

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

    public class JDKHttpClient
    extends java.lang.Object
    implements HttpClient
    • Constructor Detail

      • JDKHttpClient

        public JDKHttpClient()
    • Method Detail

      • close

        public void close()
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
      • execute

        public Response execute​(java.lang.String userAgent,
                                java.util.Map<java.lang.String,java.lang.String> headers,
                                Verb httpVerb,
                                java.lang.String completeUrl,
                                byte[] bodyContents)
                         throws java.lang.InterruptedException,
                                java.util.concurrent.ExecutionException,
                                java.io.IOException
        Specified by:
        execute in interface HttpClient
        Throws:
        java.lang.InterruptedException
        java.util.concurrent.ExecutionException
        java.io.IOException
      • execute

        public Response execute​(java.lang.String userAgent,
                                java.util.Map<java.lang.String,java.lang.String> headers,
                                Verb httpVerb,
                                java.lang.String completeUrl,
                                MultipartPayload multipartPayloads)
                         throws java.lang.InterruptedException,
                                java.util.concurrent.ExecutionException,
                                java.io.IOException
        Specified by:
        execute in interface HttpClient
        Throws:
        java.lang.InterruptedException
        java.util.concurrent.ExecutionException
        java.io.IOException
      • execute

        public Response execute​(java.lang.String userAgent,
                                java.util.Map<java.lang.String,java.lang.String> headers,
                                Verb httpVerb,
                                java.lang.String completeUrl,
                                java.lang.String bodyContents)
                         throws java.lang.InterruptedException,
                                java.util.concurrent.ExecutionException,
                                java.io.IOException
        Specified by:
        execute in interface HttpClient
        Throws:
        java.lang.InterruptedException
        java.util.concurrent.ExecutionException
        java.io.IOException
      • execute

        public Response execute​(java.lang.String userAgent,
                                java.util.Map<java.lang.String,java.lang.String> headers,
                                Verb httpVerb,
                                java.lang.String completeUrl,
                                java.io.File bodyContents)
                         throws java.lang.InterruptedException,
                                java.util.concurrent.ExecutionException,
                                java.io.IOException
        Specified by:
        execute in interface HttpClient
        Throws:
        java.lang.InterruptedException
        java.util.concurrent.ExecutionException
        java.io.IOException