static void |
AuthorizationInfo.addAuthorization(String host,
int port,
String scheme,
String realm,
String cookie,
NVPair[] params,
Object info) |
Adds an authorization entry to the list using the default context.
|
static void |
AuthorizationInfo.addAuthorization(String host,
int port,
String scheme,
String realm,
String cookie,
NVPair[] params,
Object info,
Object context) |
Adds an authorization entry to the list.
|
static byte[] |
Codecs.chunkedEncode(byte[] data,
int off,
int len,
NVPair[] ftrs,
boolean last) |
Encodes data used the chunked encoding.
|
static byte[] |
Codecs.chunkedEncode(byte[] data,
NVPair[] ftrs,
boolean last) |
Encodes data used the chunked encoding.
|
HTTPResponse |
HTTPConnection.Delete(String file,
NVPair[] headers) |
Requests that file be DELETEd from the server.
|
HTTPResponse |
HTTPConnection.ExtensionMethod(String method,
String file,
byte[] data,
NVPair[] headers) |
This is here to allow an arbitrary, non-standard request to be sent.
|
HTTPResponse |
HTTPConnection.ExtensionMethod(String method,
String file,
HttpOutputStream os,
NVPair[] headers) |
This is here to allow an arbitrary, non-standard request to be sent.
|
HTTPResponse |
HTTPConnection.Get(String file,
String query,
NVPair[] headers) |
Deprecated.
|
HTTPResponse |
HTTPConnection.Get(String file,
NVPair[] form_data) |
GETs the file with a query consisting of the specified form-data.
|
HTTPResponse |
HTTPConnection.Get(String file,
NVPair[] form_data,
NVPair[] headers) |
GETs the file with a query consisting of the specified form-data.
|
HTTPResponse |
HTTPConnection.Head(String file,
String query,
NVPair[] headers) |
Sends the HEAD request.
|
HTTPResponse |
HTTPConnection.Head(String file,
NVPair[] form_data) |
Sends the HEAD request.
|
HTTPResponse |
HTTPConnection.Head(String file,
NVPair[] form_data,
NVPair[] headers) |
Sends the HEAD request.
|
static byte[] |
Codecs.mpFormDataEncode(NVPair[] opts,
NVPair[] files,
NVPair[] ct_hdr) |
This method encodes name/value pairs and files into a byte array using the
multipart/form-data encoding.
|
static byte[] |
Codecs.mpFormDataEncode(NVPair[] opts,
NVPair[] files,
NVPair[] ct_hdr,
FilenameMangler mangler) |
This method encodes name/value pairs and files into a byte array using the
multipart/form-data encoding.
|
static String |
Codecs.nv2query(NVPair[] pairs) |
Turns an array of name/value pairs into the string
"name1=value1&name2=value2&name3=value3".
|
HTTPResponse |
HTTPConnection.Options(String file,
NVPair[] headers) |
Request OPTIONS from the server.
|
HTTPResponse |
HTTPConnection.Options(String file,
NVPair[] headers,
byte[] data) |
Request OPTIONS from the server.
|
HTTPResponse |
HTTPConnection.Options(String file,
NVPair[] headers,
HttpOutputStream stream) |
Request OPTIONS from the server.
|
HTTPResponse |
HTTPConnection.Post(String file,
byte[] data,
NVPair[] headers) |
POSTs the raw data to the specified file using the specified headers.
|
HTTPResponse |
HTTPConnection.Post(String file,
String data,
NVPair[] headers) |
POSTs the data to the specified file using the specified headers.
|
HTTPResponse |
HTTPConnection.Post(String file,
HttpOutputStream stream,
NVPair[] headers) |
POSTs the data written to the output stream to the specified file using the
specified headers.
|
HTTPResponse |
HTTPConnection.Post(String file,
NVPair[] form_data) |
POSTs form-data to the specified file.
|
HTTPResponse |
HTTPConnection.Post(String file,
NVPair[] form_data,
NVPair[] headers) |
POST's form-data to the specified file using the specified headers.
|
HTTPResponse |
HTTPConnection.Put(String file,
byte[] data,
NVPair[] headers) |
PUTs the raw data into the specified file using the additional headers.
|
HTTPResponse |
HTTPConnection.Put(String file,
String data,
NVPair[] headers) |
PUTs the data into the specified file using the additional headers for the
request.
|
HTTPResponse |
HTTPConnection.Put(String file,
HttpOutputStream stream,
NVPair[] headers) |
PUTs the data written to the output stream into the specified file using
the additional headers.
|
void |
HTTPConnection.setDefaultHeaders(NVPair[] headers) |
Sets the default http headers to be sent with each request.
|
void |
Request.setHeaders(NVPair[] headers) |
|
void |
AuthorizationInfo.setParams(NVPair[] params) |
Set the authentication parameters.
|
void |
HttpOutputStream.setTrailers(NVPair[] trailers) |
Sets the trailers to be sent if the output is sent with the chunked
transfer encoding.
|
protected HTTPResponse |
HTTPConnection.setupRequest(String method,
String resource,
NVPair[] headers,
byte[] entity,
HttpOutputStream stream) |
Sets up the request, creating the list of headers to send and creating
instances of the modules.
|
HTTPResponse |
HTTPConnection.Trace(String file,
NVPair[] headers) |
Requests a TRACE.
|