|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use NVPair | |
---|---|
HTTPClient | This package provides a complete http client library. |
Uses of NVPair in HTTPClient |
---|
Methods in HTTPClient that return NVPair | |
---|---|
NVPair[] |
HTTPConnection.getDefaultHeaders()
Gets the current list of default http headers. |
NVPair[] |
HTTPConnection.getDefaultHeaders()
Gets the current list of default http headers. |
NVPair[] |
Request.getHeaders()
|
NVPair[] |
RoRequest.getHeaders()
|
NVPair[] |
Request.getHeaders()
|
NVPair[] |
RoRequest.getHeaders()
|
NVPair[] |
AuthorizationInfo.getParams()
Get the authentication parameters. |
NVPair[] |
HttpHeaderElement.getParams()
|
NVPair[] |
AuthorizationInfo.getParams()
Get the authentication parameters. |
NVPair[] |
HttpHeaderElement.getParams()
|
NVPair[] |
HttpOutputStream.getTrailers()
Gets the trailers which were set with setTrailers() . |
NVPair[] |
HttpOutputStream.getTrailers()
Gets the trailers which were set with setTrailers() . |
NVPair |
AuthorizationPrompter.getUsernamePassword(AuthorizationInfo challenge,
boolean forProxy)
This method is invoked whenever a username and password is required for an authentication challenge to proceed. |
NVPair |
AuthorizationPrompter.getUsernamePassword(AuthorizationInfo challenge,
boolean forProxy)
This method is invoked whenever a username and password is required for an authentication challenge to proceed. |
static NVPair[] |
Codecs.mpFormDataDecode(byte[] data,
String cont_type,
String dir)
This method decodes a multipart/form-data encoded string. |
static NVPair[] |
Codecs.mpFormDataDecode(byte[] data,
String cont_type,
String dir)
This method decodes a multipart/form-data encoded string. |
static NVPair[] |
Codecs.mpFormDataDecode(byte[] data,
String cont_type,
String dir,
FilenameMangler mangler)
This method decodes a multipart/form-data encoded string. |
static NVPair[] |
Codecs.mpFormDataDecode(byte[] data,
String cont_type,
String dir,
FilenameMangler mangler)
This method decodes a multipart/form-data encoded string. |
static NVPair[] |
Codecs.query2nv(String query)
Turns a string of the form "name1=value1&name2=value2&name3=value3" into an array of name/value pairs. |
static NVPair[] |
Codecs.query2nv(String query)
Turns a string of the form "name1=value1&name2=value2&name3=value3" into an array of name/value pairs. |
Methods in HTTPClient with parameters of type NVPair | |
---|---|
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)
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 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,
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. |
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.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,
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.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,
NVPair[] form_data)
GETs the file with a query consisting of the specified form-data. |
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.Get(String file,
NVPair[] form_data,
NVPair[] headers)
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.Get(String file,
NVPair[] form_data,
NVPair[] headers)
GETs the file with a query consisting of the specified form-data. |
HTTPResponse |
HTTPConnection.Get(String file,
String query,
NVPair[] headers)
GETs the file using the specified query string. |
HTTPResponse |
HTTPConnection.Get(String file,
String query,
NVPair[] headers)
GETs the file using the specified query string. |
HTTPResponse |
HTTPConnection.Head(String file,
NVPair[] form_data)
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. |
HTTPResponse |
HTTPConnection.Head(String file,
NVPair[] form_data,
NVPair[] headers)
Sends the HEAD request. |
HTTPResponse |
HTTPConnection.Head(String file,
NVPair[] form_data,
NVPair[] headers)
Sends the HEAD request. |
HTTPResponse |
HTTPConnection.Head(String file,
NVPair[] form_data,
NVPair[] headers)
Sends the HEAD request. |
HTTPResponse |
HTTPConnection.Head(String file,
String query,
NVPair[] headers)
Sends the HEAD request. |
HTTPResponse |
HTTPConnection.Head(String file,
String query,
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)
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)
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)
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)
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)
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 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 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 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 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 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". |
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)
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,
byte[] data)
Request OPTIONS from the server. |
HTTPResponse |
HTTPConnection.Options(String file,
NVPair[] headers,
HttpOutputStream stream)
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,
byte[] data,
NVPair[] headers)
POSTs the raw 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,
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)
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.Post(String file,
NVPair[] form_data,
NVPair[] headers)
POST's form-data to the specified file using the specified headers. |
HTTPResponse |
HTTPConnection.Post(String file,
NVPair[] form_data,
NVPair[] headers)
POST's form-data to the specified file using the specified headers. |
HTTPResponse |
HTTPConnection.Post(String file,
NVPair[] form_data,
NVPair[] headers)
POST's form-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,
String data,
NVPair[] headers)
POSTs the 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,
byte[] data,
NVPair[] headers)
PUTs the raw data into the specified file using the additional headers. |
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. |
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. |
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,
String data,
NVPair[] headers)
PUTs the data into the specified file using the additional headers for the request. |
void |
HTTPConnection.setDefaultHeaders(NVPair[] headers)
Sets the default http headers to be sent with each request. |
void |
HTTPConnection.setDefaultHeaders(NVPair[] headers)
Sets the default http headers to be sent with each request. |
void |
Request.setHeaders(NVPair[] headers)
|
void |
Request.setHeaders(NVPair[] headers)
|
void |
AuthorizationInfo.setParams(NVPair[] params)
Set the authentication parameters. |
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. |
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. |
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. |
HTTPResponse |
HTTPConnection.Trace(String file,
NVPair[] headers)
Requests a TRACE. |
Constructors in HTTPClient with parameters of type NVPair | |
---|---|
AuthorizationInfo(String host,
int port,
String scheme,
String realm,
NVPair[] params,
Object info)
Creates a new info structure for the specified host and port with the specified scheme, realm, params. |
|
AuthorizationInfo(String host,
int port,
String scheme,
String realm,
NVPair[] params,
Object info)
Creates a new info structure for the specified host and port with the specified scheme, realm, params. |
|
HttpHeaderElement(String name,
String value,
NVPair[] params)
|
|
HttpHeaderElement(String name,
String value,
NVPair[] params)
|
|
NVPair(NVPair p)
Creates a copy of a given name/value pair. |
|
NVPair(NVPair p)
Creates a copy of a given name/value pair. |
|
Request(HTTPConnection con,
String method,
String req_uri,
NVPair[] headers,
byte[] data,
HttpOutputStream stream,
boolean allow_ui)
Creates a new request structure. |
|
Request(HTTPConnection con,
String method,
String req_uri,
NVPair[] headers,
byte[] data,
HttpOutputStream stream,
boolean allow_ui)
Creates a new request structure. |
|
Response(String version,
int status,
String reason,
NVPair[] headers,
byte[] data,
InputStream is,
int cont_len)
Create a new response with the given info. |
|
Response(String version,
int status,
String reason,
NVPair[] headers,
byte[] data,
InputStream is,
int cont_len)
Create a new response with the given info. |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |