Uses of Class
org.exoplatform.common.http.client.NVPair
Packages that use NVPair
-
Uses of NVPair in org.exoplatform.common.http.client
Methods in org.exoplatform.common.http.client that return NVPairModifier and TypeMethodDescriptionNVPair[]HTTPConnection.getDefaultHeaders()Gets the current list of default http headers.NVPair[]Request.getHeaders()NVPair[]RoRequest.getHeaders()final NVPair[]AuthorizationInfo.getParams()Get the authentication parameters.NVPair[]HttpHeaderElement.getParams()NVPair[]HttpOutputStream.getTrailers()Gets the trailers which were set withsetTrailers().AuthorizationPrompter.getUsernamePassword(AuthorizationInfo challenge, boolean forProxy) This method is invoked whenever a username and password is required for an authentication challenge to proceed.static final NVPair[]Codecs.mpFormDataDecode(byte[] data, String cont_type, String dir) This method decodes a multipart/form-data encoded string.static final NVPair[]Codecs.mpFormDataDecode(byte[] data, String cont_type, String dir, FilenameMangler mangler) This method decodes a multipart/form-data encoded string.static final NVPair[]Turns a string of the form"name1=value1&name2=value2&name3=value3"into an array of name/value pairs.Methods in org.exoplatform.common.http.client with parameters of type NVPairModifier and TypeMethodDescriptionstatic voidAuthorizationInfo.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 voidAuthorizationInfo.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 final byte[]Codecs.chunkedEncode(byte[] data, int off, int len, NVPair[] ftrs, boolean last) Encodes data used the chunked encoding.static final byte[]Codecs.chunkedEncode(byte[] data, NVPair[] ftrs, boolean last) Encodes data used the chunked encoding.Requests that file be DELETEd from the server.HTTPConnection.ExtensionMethod(String method, String file, byte[] data, NVPair[] headers) This is here to allow an arbitrary, non-standard request to be sent.HTTPConnection.ExtensionMethod(String method, String file, HttpOutputStream os, NVPair[] headers) This is here to allow an arbitrary, non-standard request to be sent.Deprecated.GETs the file with a query consisting of the specified form-data.GETs the file with a query consisting of the specified form-data.Sends the HEAD request.Sends the HEAD request.Sends the HEAD request.static final 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 final 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 final StringTurns an array of name/value pairs into the string"name1=value1&name2=value2&name3=value3".Request OPTIONS from the server.Request OPTIONS from the server.HTTPConnection.Options(String file, NVPair[] headers, HttpOutputStream stream) Request OPTIONS from the server.POSTs the raw data to the specified file using the specified headers.POSTs the data to the specified file using the specified headers.HTTPConnection.Post(String file, HttpOutputStream stream, NVPair[] headers) POSTs the data written to the output stream to the specified file using the specified headers.POSTs form-data to the specified file.POST's form-data to the specified file using the specified headers.PUTs the raw data into the specified file using the additional headers.PUTs the data into the specified file using the additional headers for the request.HTTPConnection.Put(String file, HttpOutputStream stream, NVPair[] headers) PUTs the data written to the output stream into the specified file using the additional headers.voidHTTPConnection.setDefaultHeaders(NVPair[] headers) Sets the default http headers to be sent with each request.voidRequest.setHeaders(NVPair[] headers) final voidSet the authentication parameters.voidHttpOutputStream.setTrailers(NVPair[] trailers) Sets the trailers to be sent if the output is sent with the chunked transfer encoding.protected final HTTPResponseHTTPConnection.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.Requests a TRACE.Constructors in org.exoplatform.common.http.client with parameters of type NVPairModifierConstructorDescriptionCreates a new info structure for the specified host and port with the specified scheme, realm, params.HttpHeaderElement(String name, String value, NVPair[] params) 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.Response(String version, int status, String reason, NVPair[] headers, byte[] data, InputStream is, int cont_len) Create a new response with the given info.