Class Request.Builder

  • Enclosing class:
    Request

    public static final class Request.Builder
    extends java.lang.Object
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • url

        public Request.Builder url​(java.net.URL url)
                            throws java.net.URISyntaxException
        Throws:
        java.net.URISyntaxException
      • addQueryParameter

        public Request.Builder addQueryParameter​(java.lang.String key,
                                                 java.lang.String value)
      • multiPartPost

        public Request.Builder multiPartPost​(java.lang.String fileName,
                                             byte[] body)
      • multiPartPost

        public Request.Builder multiPartPost​(java.io.File body)
      • build

        public Request build()
                      throws java.net.MalformedURLException,
                             java.net.URISyntaxException
        Throws:
        java.net.MalformedURLException
        java.net.URISyntaxException