Package | Description |
---|---|
org.apache.commons.httpclient |
Classes and interfaces supporting the client side of the HTTP protocol.
|
org.apache.commons.httpclient.util |
Provides some utility classes for use by HttpClient.
|
Modifier and Type | Method and Description |
---|---|
protected void |
HttpsURL.checkValid()
Verify the valid class use for construction.
|
protected void |
HttpURL.checkValid()
Verify the valid class use for construction.
|
protected static java.lang.String |
URI.decode(char[] component,
java.lang.String charset)
Decodes URI encoded string.
|
protected static java.lang.String |
URI.decode(java.lang.String component,
java.lang.String charset)
Decodes URI encoded string.
|
protected static char[] |
URI.encode(java.lang.String original,
java.util.BitSet allowed,
java.lang.String charset)
Encodes URI string.
|
java.lang.String |
URI.getAboveHierPath()
Get the level above the this hierarchy level.
|
java.lang.String |
URI.getAuthority()
Get the authority.
|
java.lang.String |
URI.getCurrentHierPath()
Get the current hierarchy level.
|
java.lang.String |
URI.getEscapedAboveHierPath()
Get the level above the this hierarchy level.
|
java.lang.String |
URI.getEscapedCurrentHierPath()
Get the escaped current hierarchy level.
|
java.lang.String |
URI.getFragment()
Get the fragment.
|
java.lang.String |
URI.getHost()
Get the host.
|
java.lang.String |
URI.getName()
Get the basename of the path.
|
java.lang.String |
HttpURL.getPassword()
Get the password.
|
java.lang.String |
URI.getPath()
Get the path.
|
java.lang.String |
URI.getPathQuery()
Get the path and query.
|
java.lang.String |
URI.getQuery()
Get the query.
|
char[] |
URI.getRawAboveHierPath()
Get the level above the this hierarchy level.
|
char[] |
HttpURL.getRawAboveHierPath()
Get the level above the this hierarchy level.
|
char[] |
URI.getRawCurrentHierPath()
Get the raw-escaped current hierarchy level.
|
char[] |
HttpURL.getRawCurrentHierPath()
Get the raw-escaped current hierarchy level.
|
protected char[] |
URI.getRawCurrentHierPath(char[] path)
Get the raw-escaped current hierarchy level in the given path.
|
java.lang.String |
URI.getURI()
It can be gotten the URI character sequence.
|
URI |
HttpMethod.getURI()
Returns the URI for this method.
|
URI |
HttpMethodBase.getURI()
Returns the URI of the HTTP method
|
URI |
ConnectMethod.getURI() |
java.lang.String |
URI.getURIReference()
Get the original URI reference string.
|
java.lang.String |
HttpURL.getUser()
Get the user.
|
java.lang.String |
URI.getUserinfo()
Get the userinfo.
|
void |
URI.normalize()
Normalizes the path part of this URI.
|
protected char[] |
URI.normalize(char[] path)
Normalize the given hier path part.
|
protected void |
URI.parseAuthority(java.lang.String original,
boolean escaped)
Parse the authority component.
|
protected void |
URI.parseUriReference(java.lang.String original,
boolean escaped)
In order to avoid any possilbity of conflict with non-ASCII characters,
Parse a URI reference as a
String with the character
encoding of the local system or the document. |
protected char[] |
URI.resolvePath(char[] basePath,
char[] relPath)
Resolve the base and relative path.
|
void |
URI.setEscapedAuthority(java.lang.String escapedAuthority)
Set the authority.
|
void |
URI.setEscapedFragment(java.lang.String escapedFragment)
Set the escaped fragment string.
|
void |
HttpURL.setEscapedPassword(java.lang.String escapedPassword)
Set the escaped password string.
|
void |
URI.setEscapedPath(java.lang.String escapedPath)
Set the escaped path.
|
void |
URI.setEscapedQuery(java.lang.String escapedQuery)
Set the escaped query string.
|
void |
HttpURL.setEscapedUser(java.lang.String escapedUser)
Set the escaped user string.
|
void |
HttpURL.setEscapedUserinfo(java.lang.String escapedUser,
java.lang.String escapedPassword)
Set the raw-escaped user and password.
|
void |
URI.setFragment(java.lang.String fragment)
Set the fragment.
|
void |
HttpURL.setPassword(java.lang.String password)
Set the password string.
|
void |
URI.setPath(java.lang.String path)
Set the path.
|
void |
URI.setQuery(java.lang.String query)
Set the query.
|
void |
HttpURL.setQuery(java.lang.String[] queryName,
java.lang.String[] queryValue)
Set the query as the name and value pairs.
|
void |
HttpURL.setQuery(java.lang.String queryName,
java.lang.String queryValue)
Set the query as the name and value pair.
|
void |
URI.setRawAuthority(char[] escapedAuthority)
Set the authority.
|
void |
URI.setRawFragment(char[] escapedFragment)
Set the raw-escaped fragment.
|
void |
HttpURL.setRawPassword(char[] escapedPassword)
Set the raw-escaped password.
|
void |
URI.setRawPath(char[] escapedPath)
Set the raw-escaped path.
|
void |
URI.setRawQuery(char[] escapedQuery)
Set the raw-escaped query.
|
void |
HttpURL.setRawUser(char[] escapedUser)
Set the raw-escaped user.
|
void |
HttpURL.setRawUserinfo(char[] escapedUser,
char[] escapedPassword)
Set the raw-escaped user and password.
|
void |
HttpMethod.setURI(URI uri)
Sets the URI for this method.
|
void |
HttpMethodBase.setURI(URI uri)
Sets the URI for this method.
|
void |
HttpURL.setUser(java.lang.String user)
Set the user string.
|
void |
HttpURL.setUserinfo(java.lang.String user,
java.lang.String password)
Set the user and password.
|
protected static java.lang.String |
HttpURL.toUserinfo(java.lang.String user,
java.lang.String password) |
Constructor and Description |
---|
HttpHost(URI uri)
URI constructor for HttpHost.
|
HttpsURL(char[] escaped)
Construct a HTTPS URL as an escaped form of a character array.
|
HttpsURL(char[] escaped,
java.lang.String charset)
Construct a HTTPS URL as an escaped form of a character array with the
given charset to do escape encoding.
|
HttpsURL(HttpsURL base,
HttpsURL relative)
Construct a HTTPS URL with a given relative URL.
|
HttpsURL(HttpsURL base,
java.lang.String relative)
Construct a HTTPS URL with a given relative HTTPS URL string.
|
HttpsURL(java.lang.String original)
Construct a HTTPS URL from a given string.
|
HttpsURL(java.lang.String host,
int port,
java.lang.String path)
Construct a HTTPS URL from given components.
|
HttpsURL(java.lang.String host,
int port,
java.lang.String path,
java.lang.String query)
Construct a HTTPS URL from given components.
|
HttpsURL(java.lang.String original,
java.lang.String charset)
Construct a HTTPS URL from a given string with the given charset to do
escape encoding.
|
HttpsURL(java.lang.String userinfo,
java.lang.String host,
int port,
java.lang.String path)
Construct a HTTPS URL from given components.
|
HttpsURL(java.lang.String userinfo,
java.lang.String host,
int port,
java.lang.String path,
java.lang.String query)
Construct a HTTPS URL from given components.
|
HttpsURL(java.lang.String userinfo,
java.lang.String host,
int port,
java.lang.String path,
java.lang.String query,
java.lang.String fragment)
Construct a HTTPS URL from given components.
|
HttpsURL(java.lang.String user,
java.lang.String password,
java.lang.String host)
Construct a HTTPS URL from given components.
|
HttpsURL(java.lang.String user,
java.lang.String password,
java.lang.String host,
int port)
Construct a HTTPS URL from given components.
|
HttpsURL(java.lang.String user,
java.lang.String password,
java.lang.String host,
int port,
java.lang.String path)
Construct a HTTPS URL from given components.
|
HttpsURL(java.lang.String user,
java.lang.String password,
java.lang.String host,
int port,
java.lang.String path,
java.lang.String query)
Construct a HTTPS URL from given components.
|
HttpsURL(java.lang.String user,
java.lang.String password,
java.lang.String host,
int port,
java.lang.String path,
java.lang.String query,
java.lang.String fragment)
Construct a HTTP URL from given components.
|
HttpsURL(java.lang.String host,
java.lang.String path,
java.lang.String query,
java.lang.String fragment)
Construct a HTTPS URL from given components.
|
HttpsURL(java.lang.String userinfo,
java.lang.String host,
java.lang.String path,
java.lang.String query,
java.lang.String fragment)
Construct a HTTPS URL from given components.
|
HttpURL(char[] escaped)
Construct a HTTP URL as an escaped form of a character array.
|
HttpURL(char[] escaped,
java.lang.String charset)
Construct a HTTP URL as an escaped form of a character array with the
given charset to do escape encoding.
|
HttpURL(HttpURL base,
HttpURL relative)
Construct a HTTP URL with a given relative URL.
|
HttpURL(HttpURL base,
java.lang.String relative)
Construct a HTTP URL with a given relative URL string.
|
HttpURL(java.lang.String original)
Construct a HTTP URL from a given string.
|
HttpURL(java.lang.String host,
int port,
java.lang.String path)
Construct a HTTP URL from given components.
|
HttpURL(java.lang.String host,
int port,
java.lang.String path,
java.lang.String query)
Construct a HTTP URL from given components.
|
HttpURL(java.lang.String original,
java.lang.String charset)
Construct a HTTP URL from a given string with the given charset to do
escape encoding.
|
HttpURL(java.lang.String userinfo,
java.lang.String host,
int port,
java.lang.String path)
Construct a HTTP URL from given components.
|
HttpURL(java.lang.String userinfo,
java.lang.String host,
int port,
java.lang.String path,
java.lang.String query)
Construct a HTTP URL from given components.
|
HttpURL(java.lang.String userinfo,
java.lang.String host,
int port,
java.lang.String path,
java.lang.String query,
java.lang.String fragment)
Construct a HTTP URL from given components.
|
HttpURL(java.lang.String user,
java.lang.String password,
java.lang.String host)
Construct a HTTP URL from given components.
|
HttpURL(java.lang.String user,
java.lang.String password,
java.lang.String host,
int port)
Construct a HTTP URL from given components.
|
HttpURL(java.lang.String user,
java.lang.String password,
java.lang.String host,
int port,
java.lang.String path)
Construct a HTTP URL from given components.
|
HttpURL(java.lang.String user,
java.lang.String password,
java.lang.String host,
int port,
java.lang.String path,
java.lang.String query)
Construct a HTTP URL from given components.
|
HttpURL(java.lang.String user,
java.lang.String password,
java.lang.String host,
int port,
java.lang.String path,
java.lang.String query,
java.lang.String fragment)
Construct a HTTP URL from given components.
|
HttpURL(java.lang.String host,
java.lang.String path,
java.lang.String query,
java.lang.String fragment)
Construct a HTTP URL from given components.
|
HttpURL(java.lang.String userinfo,
java.lang.String host,
java.lang.String path,
java.lang.String query,
java.lang.String fragment)
Construct a HTTP URL from given components.
|
URI(char[] escaped)
Deprecated.
Use #URI(String, boolean)
|
URI(char[] escaped,
java.lang.String charset)
Deprecated.
Use #URI(String, boolean, String)
|
URI(java.lang.String original)
Deprecated.
Use #URI(String, boolean)
|
URI(java.lang.String s,
boolean escaped)
Construct a URI from a string with the given charset.
|
URI(java.lang.String s,
boolean escaped,
java.lang.String charset)
Construct a URI from a string with the given charset.
|
URI(java.lang.String original,
java.lang.String charset)
Deprecated.
Use #URI(String, boolean, String)
|
URI(java.lang.String scheme,
java.lang.String schemeSpecificPart,
java.lang.String fragment)
Construct a general URI from the given components.
|
URI(java.lang.String scheme,
java.lang.String userinfo,
java.lang.String host,
int port)
Construct a general URI from the given components.
|
URI(java.lang.String scheme,
java.lang.String userinfo,
java.lang.String host,
int port,
java.lang.String path)
Construct a general URI from the given components.
|
URI(java.lang.String scheme,
java.lang.String userinfo,
java.lang.String host,
int port,
java.lang.String path,
java.lang.String query)
Construct a general URI from the given components.
|
URI(java.lang.String scheme,
java.lang.String userinfo,
java.lang.String host,
int port,
java.lang.String path,
java.lang.String query,
java.lang.String fragment)
Construct a general URI from the given components.
|
URI(java.lang.String scheme,
java.lang.String host,
java.lang.String path,
java.lang.String fragment)
Construct a general URI from the given components.
|
URI(java.lang.String scheme,
java.lang.String authority,
java.lang.String path,
java.lang.String query,
java.lang.String fragment)
Construct a general URI from the given components.
|
URI(URI base,
java.lang.String relative)
Deprecated.
Use #URI(URI, String, boolean)
|
URI(URI base,
java.lang.String relative,
boolean escaped)
Construct a general URI with the given relative URI string.
|
URI(URI base,
URI relative)
Construct a general URI with the given relative URI.
|
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
URIUtil.Coder.decode(char[] escapedComponent,
java.lang.String charset)
Deprecated.
use org.apache.commons.codec.net.URLCodec
|
static java.lang.String |
URIUtil.decode(java.lang.String escaped)
Unescape and decode a given string regarded as an escaped string with the
default protocol charset.
|
static java.lang.String |
URIUtil.decode(java.lang.String escaped,
java.lang.String charset)
Unescape and decode a given string regarded as an escaped string.
|
static java.lang.String |
URIUtil.encode(java.lang.String unescaped,
java.util.BitSet allowed)
Escape and encode a given string with allowed characters not to be
escaped and the default protocol charset.
|
static java.lang.String |
URIUtil.encode(java.lang.String unescaped,
java.util.BitSet allowed,
java.lang.String charset)
Escape and encode a given string with allowed characters not to be
escaped and a given charset.
|
static char[] |
URIUtil.Coder.encode(java.lang.String unescapedComponent,
java.util.BitSet allowed,
java.lang.String charset)
Deprecated.
use org.apache.commons.codec.net.URLCodec
|
static java.lang.String |
URIUtil.encodeAll(java.lang.String unescaped)
Get the all escaped and encoded string with the default protocl charset.
|
static java.lang.String |
URIUtil.encodeAll(java.lang.String unescaped,
java.lang.String charset)
Get the all escaped and encoded string with a given charset.
|
static java.lang.String |
URIUtil.encodePath(java.lang.String unescaped)
Escape and encode a string regarded as the path component of an URI with
the default protocol charset.
|
static java.lang.String |
URIUtil.encodePath(java.lang.String unescaped,
java.lang.String charset)
Escape and encode a string regarded as the path component of an URI with
a given charset.
|
static java.lang.String |
URIUtil.encodePathQuery(java.lang.String unescaped)
Escape and encode a string regarded as the path and query components of
an URI with the default protocol charset.
|
static java.lang.String |
URIUtil.encodePathQuery(java.lang.String unescaped,
java.lang.String charset)
Escape and encode a string regarded as the path and query components of
an URI with a given charset.
|
static java.lang.String |
URIUtil.encodeQuery(java.lang.String unescaped)
Escape and encode a string regarded as the query component of an URI with
the default protocol charset.
|
static java.lang.String |
URIUtil.encodeQuery(java.lang.String unescaped,
java.lang.String charset)
Escape and encode a string regarded as the query component of an URI with
a given charset.
|
static java.lang.String |
URIUtil.encodeWithinAuthority(java.lang.String unescaped)
Escape and encode a string regarded as within the authority component of
an URI with the default protocol charset.
|
static java.lang.String |
URIUtil.encodeWithinAuthority(java.lang.String unescaped,
java.lang.String charset)
Escape and encode a string regarded as within the authority component of
an URI with a given charset.
|
static java.lang.String |
URIUtil.encodeWithinPath(java.lang.String unescaped)
Escape and encode a string regarded as within the path component of an
URI with the default protocol charset.
|
static java.lang.String |
URIUtil.encodeWithinPath(java.lang.String unescaped,
java.lang.String charset)
Escape and encode a string regarded as within the path component of an
URI with a given charset.
|
static java.lang.String |
URIUtil.encodeWithinQuery(java.lang.String unescaped)
Escape and encode a string regarded as within the query component of an
URI with the default protocol charset.
|
static java.lang.String |
URIUtil.encodeWithinQuery(java.lang.String unescaped,
java.lang.String charset)
Escape and encode a string regarded as within the query component of an
URI with a given charset.
|
Copyright © 2001-2012 Apache Software Foundation. All Rights Reserved.