Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

Uses of Class
HTTPClient.NVPair

Uses of NVPair in HTTPClient
 

Fields in HTTPClient declared as NVPair
private static NVPair[] Request.empty
          null headers
private  NVPair[] Request.headers
          the headers to be used
private static NVPair[] HttpOutputStream.empty
          null trailers
private  NVPair[] HttpOutputStream.trailers
          the trailers to send if using chunked encoding.
private  NVPair[] HttpHeaderElement.parameters
          element parameters
private  NVPair[] HTTPConnection.DefaultHeaders
          The list of default http headers
private static NVPair[] Codecs.dummy
           
private  NVPair[] AuthorizationInfo.auth_params
          any parameters
private static NVPair[] HttpURLConnection.default_headers
          the default request headers
private  NVPair[] HttpURLConnection.headers
          the request headers
 

Methods in HTTPClient that return NVPair
(package private)  NVPair BasicAuthBox.getInput(java.lang.String l1, java.lang.String l2, java.lang.String l3)
          the method called by MyAuthHandler.
 NVPair[] RoRequest.getHeaders()
           
 NVPair[] Request.getHeaders()
           
 NVPair[] HttpOutputStream.getTrailers()
          Gets the trailers which were set with setTrailers().
 NVPair[] HttpHeaderElement.getParams()
           
 NVPair[] HTTPConnection.getDefaultHeaders()
          Gets the current list of default http headers.
private  NVPair[] HTTPConnection.mergedHeaders(NVPair[] spec)
          This merges built-in default headers, user-specified default headers, and method-specified headers.
private static NVPair[] DefaultAuthHandler.setValue(NVPair[] list, java.lang.String key, java.lang.String val)
          Sets the value of the NVPair with the name that matches the key (case-insensitive).
static NVPair[] Codecs.mpFormDataDecode(byte[] data, java.lang.String cont_type, java.lang.String dir)
          This method decodes a multipart/form-data encoded string.
static NVPair[] Codecs.mpFormDataDecode(byte[] data, java.lang.String cont_type, java.lang.String dir, FilenameMangler mangler)
          This method decodes a multipart/form-data encoded string.
static NVPair[] Codecs.query2nv(java.lang.String query)
          Turns a string of the form "name1=value1&name2=value2&name3=value3" into an array of name/value pairs.
 NVPair[] AuthorizationInfo.getParams()
          Get the authentication parameters.
(package private) static NVPair[] Util.resizeArray(NVPair[] src, int new_size)
           
 

Methods in HTTPClient with parameters of type NVPair
 void Request.setHeaders(NVPair[] headers)
           
 void HttpOutputStream.setTrailers(NVPair[] trailers)
          Sets the trailers to be sent if the output is sent with the chunked transfer encoding.
 HTTPResponse HTTPConnection.Head(java.lang.String file, NVPair[] form_data)
          Sends the HEAD request.
 HTTPResponse HTTPConnection.Head(java.lang.String file, NVPair[] form_data, NVPair[] headers)
          Sends the HEAD request.
 HTTPResponse HTTPConnection.Head(java.lang.String file, java.lang.String query, NVPair[] headers)
          Sends the HEAD request.
 HTTPResponse HTTPConnection.Get(java.lang.String file, NVPair[] form_data)
          GETs the file with a query consisting of the specified form-data.
 HTTPResponse HTTPConnection.Get(java.lang.String file, NVPair[] form_data, NVPair[] headers)
          GETs the file with a query consisting of the specified form-data.
 HTTPResponse HTTPConnection.Get(java.lang.String file, java.lang.String query, NVPair[] headers)
          GETs the file using the specified query string.
 HTTPResponse HTTPConnection.Post(java.lang.String file, NVPair[] form_data)
          POSTs form-data to the specified file.
 HTTPResponse HTTPConnection.Post(java.lang.String file, NVPair[] form_data, NVPair[] headers)
          POST's form-data to the specified file using the specified headers.
 HTTPResponse HTTPConnection.Post(java.lang.String file, java.lang.String data, NVPair[] headers)
          POSTs the data to the specified file using the specified headers.
 HTTPResponse HTTPConnection.Post(java.lang.String file, byte[] data, NVPair[] headers)
          POSTs the raw data to the specified file using the specified headers.
 HTTPResponse HTTPConnection.Post(java.lang.String file, HttpOutputStream stream, NVPair[] headers)
          POSTs the data written to the output stream to the specified file using the specified headers.
 HTTPResponse HTTPConnection.Put(java.lang.String file, java.lang.String data, NVPair[] headers)
          PUTs the data into the specified file using the additional headers for the request.
 HTTPResponse HTTPConnection.Put(java.lang.String file, byte[] data, NVPair[] headers)
          PUTs the raw data into the specified file using the additional headers.
 HTTPResponse HTTPConnection.Put(java.lang.String file, HttpOutputStream stream, NVPair[] headers)
          PUTs the data written to the output stream into the specified file using the additional headers.
 HTTPResponse HTTPConnection.Options(java.lang.String file, NVPair[] headers)
          Request OPTIONS from the server.
 HTTPResponse HTTPConnection.Options(java.lang.String file, NVPair[] headers, byte[] data)
          Request OPTIONS from the server.
 HTTPResponse HTTPConnection.Options(java.lang.String file, NVPair[] headers, HttpOutputStream stream)
          Request OPTIONS from the server.
 HTTPResponse HTTPConnection.Delete(java.lang.String file, NVPair[] headers)
          Requests that file be DELETEd from the server.
 HTTPResponse HTTPConnection.Trace(java.lang.String file, NVPair[] headers)
          Requests a TRACE.
 HTTPResponse HTTPConnection.ExtensionMethod(java.lang.String method, java.lang.String file, byte[] data, NVPair[] headers)
          This is here to allow an arbitrary, non-standard request to be sent.
 HTTPResponse HTTPConnection.ExtensionMethod(java.lang.String method, java.lang.String file, HttpOutputStream os, NVPair[] headers)
          This is here to allow an arbitrary, non-standard request to be sent.
 void HTTPConnection.setDefaultHeaders(NVPair[] headers)
          Sets the default http headers to be sent with each request.
private  HTTPResponse HTTPConnection.setupRequest(java.lang.String method, java.lang.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.
private  NVPair[] HTTPConnection.mergedHeaders(NVPair[] spec)
          This merges built-in default headers, user-specified default headers, and method-specified headers.
private static boolean DefaultAuthHandler.hasParam(NVPair[] params, java.lang.String name, java.lang.String val)
           
private static java.lang.String DefaultAuthHandler.calcResponseAttr(java.lang.String hash, java.lang.String[] extra, NVPair[] params, int alg, int uri, int qop, int nonce, int nc, int cnonce, java.lang.String method)
          Calc "response" attribute for a request.
private static java.lang.String DefaultAuthHandler.getValue(NVPair[] list, java.lang.String key)
          Return the value of the first NVPair whose name matches the key using a case-insensitive search.
private static int DefaultAuthHandler.getIndex(NVPair[] list, java.lang.String key)
          Return the index of the first NVPair whose name matches the key using a case-insensitive search.
private static NVPair[] DefaultAuthHandler.setValue(NVPair[] list, java.lang.String key, java.lang.String val)
          Sets the value of the NVPair with the name that matches the key (case-insensitive).
static byte[] Codecs.mpFormDataEncode(NVPair[] opts, NVPair[] files, NVPair[] cont_type)
          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[] cont_type, FilenameMangler mangler)
          This method encodes name/value pairs and files into a byte array using the multipart/form-data encoding.
static java.lang.String Codecs.nv2query(NVPair[] pairs)
          Turns an array of name/value pairs into the string "name1=value1&name2=value2&name3=value3".
static byte[] Codecs.chunkedEncode(byte[] data, 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 void AuthorizationInfo.addAuthorization(java.lang.String host, int port, java.lang.String scheme, java.lang.String realm, java.lang.String cookie, NVPair[] params, java.lang.Object info)
          Adds an authorization entry to the list using the default context.
static void AuthorizationInfo.addAuthorization(java.lang.String host, int port, java.lang.String scheme, java.lang.String realm, java.lang.String cookie, NVPair[] params, java.lang.Object info, java.lang.Object context)
          Adds an authorization entry to the list.
 void AuthorizationInfo.setParams(NVPair[] params)
          Set the authentication parameters.
(package private) static NVPair[] Util.resizeArray(NVPair[] src, int new_size)
           
 

Constructors in HTTPClient with parameters of type NVPair
Response(java.lang.String version, int status, java.lang.String reason, NVPair[] headers, byte[] data, java.io.InputStream is, int cont_len)
          Create a new response with the given info.
Request(HTTPConnection con, java.lang.String method, java.lang.String req_uri, NVPair[] headers, byte[] data, HttpOutputStream stream, boolean allow_ui)
          Creates a new request structure.
NVPair(NVPair p)
          Creates a copy of a given name/value pair.
HttpHeaderElement(java.lang.String name, java.lang.String value, NVPair[] params)
           
AuthorizationInfo(java.lang.String host, int port, java.lang.String scheme, java.lang.String realm, NVPair[] params, java.lang.Object info)
          Creates a new info structure for the specified host and port with the specified scheme, realm, params.