Uses of Class
HTTPClient.NVPair

Packages that use NVPair
HTTPClient This package provides a complete http client library. 
wttools.protocols.extend.http   
 

Uses of NVPair in HTTPClient
 

Methods in HTTPClient that return NVPair
 NVPair[] AuthorizationInfo.getParams()
          Get the authentication parameters.
 NVPair[] Request.getHeaders()
           
 NVPair[] HTTPConnection.getDefaultHeaders()
          Gets the current list of default http headers.
 NVPair[] HttpHeaderElement.getParams()
           
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[] HttpOutputStream.getTrailers()
          Gets the trailers which were set with setTrailers().
 NVPair[] RoRequest.getHeaders()
           
 NVPair AuthorizationPrompter.getUsernamePassword(AuthorizationInfo challenge, boolean forProxy)
          This method is invoked whenever a username and password is required for an authentication challenge to proceed.
 

Methods in HTTPClient with parameters of type NVPair
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.
 void Request.setHeaders(NVPair[] headers)
           
 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.
protected  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.
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 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.
 void HttpOutputStream.setTrailers(NVPair[] trailers)
          Sets the trailers to be sent if the output is sent with the chunked transfer encoding.
 

Constructors in HTTPClient with parameters of type NVPair
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.
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.
HttpHeaderElement(java.lang.String name, java.lang.String value, NVPair[] params)
           
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.
NVPair(NVPair p)
          Creates a copy of a given name/value pair.
 

Uses of NVPair in wttools.protocols.extend.http
 

Fields in wttools.protocols.extend.http declared as NVPair
protected  NVPair AuthorizationPrompterImpl.nvp
           
 

Methods in wttools.protocols.extend.http that return NVPair
 NVPair AuthorizationPrompterImpl.getUsernamePassword(AuthorizationInfo param1, boolean param2)
           
 



Copyright © GNU, wttools developers Team.