Package | Description |
---|---|
org.apache.commons.httpclient |
Classes and interfaces supporting the client side of the HTTP protocol.
|
org.apache.commons.httpclient.cookie |
Provides cookie handling in conjunction with
Cookie . |
org.apache.commons.httpclient.methods |
Classes implementing
HttpMethod for the base HTTP methods. |
org.apache.commons.httpclient.util |
Provides some utility classes for use by HttpClient.
|
Modifier and Type | Class and Description |
---|---|
class |
Cookie
HTTP "magic-cookie" represents a piece of state information
that the HTTP agent and the target server can exchange to maintain
a session.
|
class |
Header
An HTTP header.
|
class |
HeaderElement
One element of an HTTP header's value.
|
Modifier and Type | Method and Description |
---|---|
NameValuePair |
HeaderElement.getParameterByName(java.lang.String name)
Returns parameter with the given name, if found.
|
NameValuePair[] |
HeaderElement.getParameters()
Get parameters, if any.
|
Modifier and Type | Method and Description |
---|---|
void |
HttpMethod.setQueryString(NameValuePair[] params)
Sets the query string of this HTTP method.
|
void |
HttpMethodBase.setQueryString(NameValuePair[] params)
Sets the query string of this HTTP method.
|
Constructor and Description |
---|
HeaderElement(java.lang.String name,
java.lang.String value,
NameValuePair[] parameters)
Constructor with name, value and parameters.
|
Modifier and Type | Class and Description |
---|---|
class |
Cookie2
Cookie class for
RFC2965Spec
cookie specification. |
Modifier and Type | Method and Description |
---|---|
void |
NetscapeDraftSpec.parseAttribute(NameValuePair attribute,
Cookie cookie)
Parse the cookie attribute and update the corresponsing
Cookie
properties as defined by the Netscape draft specification |
void |
CookieSpecBase.parseAttribute(NameValuePair attribute,
Cookie cookie)
Parse the cookie attribute and update the corresponsing
Cookie
properties. |
void |
CookieSpec.parseAttribute(NameValuePair attribute,
Cookie cookie)
Parse the cookie attribute and update the corresponsing Cookie
properties.
|
void |
IgnoreCookiesSpec.parseAttribute(NameValuePair attribute,
Cookie cookie)
Does nothing.
|
void |
RFC2109Spec.parseAttribute(NameValuePair attribute,
Cookie cookie)
Parse RFC 2109 specific cookie attribute and update the corresponsing
Cookie properties. |
void |
RFC2965Spec.parseAttribute(NameValuePair attribute,
Cookie cookie)
Parse RFC 2965 specific cookie attribute and update the corresponsing
Cookie properties. |
Modifier and Type | Method and Description |
---|---|
NameValuePair |
PostMethod.getParameter(java.lang.String paramName)
Gets the parameter of the specified name.
|
NameValuePair[] |
PostMethod.getParameters()
Gets the parameters currently added to the PostMethod.
|
Modifier and Type | Method and Description |
---|---|
void |
PostMethod.addParameter(NameValuePair param)
Adds a new parameter to be used in the POST request body.
|
void |
PostMethod.addParameters(NameValuePair[] parameters)
Adds an array of parameters to be used in the POST request body.
|
void |
PostMethod.setRequestBody(NameValuePair[] parametersBody)
Sets an array of parameters to be used in the POST request body
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
ParameterFormatter.format(NameValuePair param)
Produces textual representaion of the attribute/value pair using
formatting rules defined in RFC 2616
|
void |
ParameterFormatter.format(java.lang.StringBuffer buffer,
NameValuePair param)
Produces textual representaion of the attribute/value pair using
formatting rules defined in RFC 2616
|
static java.lang.String |
EncodingUtil.formUrlEncode(NameValuePair[] pairs,
java.lang.String charset)
Form-urlencoding routine.
|
Copyright © 2001-2012 Apache Software Foundation. All Rights Reserved.