Class Request


  • public final class Request
    extends java.lang.Object
    • Method Detail

      • buildRequest

        public static Request.Builder buildRequest​(java.net.URL url,
                                                   java.lang.String apiKey,
                                                   Token token,
                                                   RequestOption... options)
                                            throws java.net.URISyntaxException,
                                                   java.net.MalformedURLException
        Throws:
        java.net.URISyntaxException
        java.net.MalformedURLException
      • buildGet

        public static Request buildGet​(java.net.URL url,
                                       java.lang.String apiKey,
                                       Token token,
                                       RequestOption... options)
                                throws java.net.URISyntaxException,
                                       java.net.MalformedURLException
        Throws:
        java.net.URISyntaxException
        java.net.MalformedURLException
      • buildDelete

        public static Request buildDelete​(java.net.URL url,
                                          java.lang.String apiKey,
                                          Token token,
                                          RequestOption... options)
                                   throws java.net.URISyntaxException,
                                          java.net.MalformedURLException
        Throws:
        java.net.URISyntaxException
        java.net.MalformedURLException
      • buildPost

        public static Request buildPost​(java.net.URL url,
                                        java.lang.String apiKey,
                                        Token token,
                                        byte[] payload,
                                        RequestOption... options)
                                 throws java.net.URISyntaxException,
                                        java.net.MalformedURLException
        Throws:
        java.net.URISyntaxException
        java.net.MalformedURLException
      • buildMultiPartPost

        public static Request buildMultiPartPost​(java.net.URL url,
                                                 java.lang.String apiKey,
                                                 Token token,
                                                 java.lang.String fileName,
                                                 byte[] payload,
                                                 RequestOption... options)
                                          throws java.net.URISyntaxException,
                                                 java.net.MalformedURLException
        Throws:
        java.net.URISyntaxException
        java.net.MalformedURLException
      • buildMultiPartPost

        public static Request buildMultiPartPost​(java.net.URL url,
                                                 java.lang.String apiKey,
                                                 Token token,
                                                 java.io.File payload,
                                                 RequestOption... options)
                                          throws java.net.URISyntaxException,
                                                 java.net.MalformedURLException
        Throws:
        java.net.URISyntaxException
        java.net.MalformedURLException
      • buildPut

        public static Request buildPut​(java.net.URL url,
                                       java.lang.String apiKey,
                                       Token token,
                                       byte[] payload,
                                       RequestOption... options)
                                throws java.net.URISyntaxException,
                                       java.net.MalformedURLException
        Throws:
        java.net.URISyntaxException
        java.net.MalformedURLException