Interface for creating custom connection managers. By default a HTTPURLConnection is used to upload files. Implement this interface with your own HTTP Handling to use a different interface than the default.
|
Open a new connection to a given URL.
|
||||||
| Return Type: void | ||||||
|
Parameters:
|
|
Get the URL we are currently connected to.
|
| Return Type: URL |
|
Parameters: N/A
|
|
Return the host of the of the current connection.
|
| Return Type: String |
|
Parameters: N/A
|
|
Add an HTTP Header with a value to the request object.
|
|||||||||
| Return Type: void | |||||||||
|
Parameters:
|
|
Set the request method of the request. This should always be one of GET, POST, DELETE, PUT or OPTIONS
|
||||||
| Return Type: void | ||||||
|
Parameters:
|
|
Upload data to the server. Before this function is called, a connection will always have been opened by calling the open function.
|
||||||
| Return Type: void | ||||||
|
Parameters:
|
|
Return an output stream. The output stream will be used to upload larger data objects such as files.
|
| Return Type: OutputStream |
|
Parameters: N/A
|
|
Get the server response. Will be called after first calling send or getOutputStream
|
| Return Type: InputStream |
|
Parameters: N/A
|
|
Get a header from the response.
|
||||||
| Return Type: String | ||||||
|
Parameters:
|
|
Gets all headers from the response
|
| Return Type: Map |
|
Parameters: N/A
|
|
gets response code
|
| Return Type: int |
|
Parameters: N/A
|
|
gets response message
|
| Return Type: String |
|
Parameters: N/A
|
|
returns the content type
|
| Return Type: String |
|
Parameters: N/A
|
|
Get the server error stream.
|
| Return Type: InputStream |
|
Parameters: N/A
|