Class MultipartRequest


  • public class MultipartRequest
    extends Request
    Represents the HTTP Multipart Request message.
    • Constructor Detail

      • MultipartRequest

        public MultipartRequest​(String url,
                                int connectionTimeout,
                                int readTimeout,
                                Proxy proxy,
                                String proxyUsername,
                                String proxyPassword)
        The Constructor takes the url as a String, a proxy as a Proxy, and proxy credentials as a String.
        Parameters:
        url - The url parameter does not need the query string parameters if they are going to be supplied via calls to Request.addQueryParameter(String, String). You can, however, supply the query parameters in the URL if you wish.
        connectionTimeout - A specified timeout value, in milliseconds, to establish communications link to the resource by URLConnection.
        readTimeout - A specified timeout, in milliseconds, for reading data from an established connection to the resource by URLConnection.
        proxy - The Connection's Proxy value
        proxyUsername - The Proxy username
        proxyPassword - The Proxy password
    • Method Detail

      • putMultipartResource

        public cc.protea.util.http.Response putMultipartResource​(Multipart multipart)
                                                          throws IOException
        Issues a PUT to the server.
        Parameters:
        multipart - The Multipart
        Returns:
        The Response from the server
        Throws:
        IOException - a IOException