Package com.hyperwallet.clientsdk.util
Class MultipartRequest
- java.lang.Object
-
- com.hyperwallet.clientsdk.util.Message<Request>
-
- com.hyperwallet.clientsdk.util.Request
-
- com.hyperwallet.clientsdk.util.MultipartRequest
-
public class MultipartRequest extends Request
Represents the HTTP Multipart Request message.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.hyperwallet.clientsdk.util.Request
Request.DefaultPasswordAuthenticator
-
-
Constructor Summary
Constructors Constructor Description 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description cc.protea.util.http.ResponseputMultipartResource(Multipart multipart)Issues a PUT to the server.-
Methods inherited from class com.hyperwallet.clientsdk.util.Request
addQueryParameter, buildHeaders, buildQueryString, deleteResource, getBinaryResource, getResource, headResource, optionsResource, postResource, putResource, readResponse, removeQueryParameter, setBodyUrlEncoded, traceResource
-
Methods inherited from class com.hyperwallet.clientsdk.util.Message
addHeader, getBody, getHeader, getHeaders, getHeaders, removeHeader, setBody, setHeaders
-
-
-
-
Field Detail
-
BOUNDARY
public static final String BOUNDARY
- See Also:
- Constant Field Values
-
CRLF
public static final String CRLF
- See Also:
- Constant Field Values
-
-
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 toRequest.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 byURLConnection.readTimeout- A specified timeout, in milliseconds, for reading data from an established connection to the resource byURLConnection.proxy- The Connection's Proxy valueproxyUsername- The Proxy usernameproxyPassword- 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- TheMultipart- Returns:
- The
Responsefrom the server - Throws:
IOException- aIOException
-
-