org.apache.commons.httpclient

Class HttpsURL

Implemented Interfaces:
Cloneable, Comparable<T>, Serializable

public class HttpsURL
extends HttpURL

The HTTPS URL.
See Also:
Serialized Form

Nested Class Summary

Nested classes/interfaces inherited from class org.apache.commons.httpclient.URI

URI.DefaultCharsetChanged, URI.LocaleToCharsetMap

Field Summary

static int
DEFAULT_PORT
Default port for HTTPS URL.
static char[]
DEFAULT_SCHEME
Default scheme for HTTPS URL.
static int
_default_port
Deprecated. Use DEFAULT_PORT instead.
static char[]
_default_scheme
Deprecated. Use DEFAULT_SCHEME instead.

Fields inherited from class org.apache.commons.httpclient.HttpURL

DEFAULT_PORT, DEFAULT_SCHEME, _default_port, _default_scheme

Fields inherited from class org.apache.commons.httpclient.URI

IPv4address, IPv6address, IPv6reference, URI_reference, _authority, _fragment, _host, _is_IPv4address, _is_IPv6reference, _is_abs_path, _is_hier_part, _is_hostname, _is_net_path, _is_opaque_part, _is_reg_name, _is_rel_path, _is_server, _opaque, _path, _port, _query, _scheme, _uri, _userinfo, abs_path, absoluteURI, allowed_IPv6reference, allowed_abs_path, allowed_authority, allowed_fragment, allowed_host, allowed_opaque_part, allowed_query, allowed_reg_name, allowed_rel_path, allowed_userinfo, allowed_within_authority, allowed_within_path, allowed_within_query, allowed_within_userinfo, alpha, alphanum, authority, control, defaultDocumentCharset, defaultDocumentCharsetByLocale, defaultDocumentCharsetByPlatform, defaultProtocolCharset, delims, digit, disallowed_opaque_part, disallowed_rel_path, domainlabel, escaped, fragment, hash, hex, hier_part, host, hostname, hostport, mark, net_path, opaque_part, param, path, path_segments, pchar, percent, port, protocolCharset, query, reg_name, rel_path, rel_segment, relativeURI, reserved, rootPath, scheme, segment, server, space, toplabel, unreserved, unwise, uric, uric_no_slash, userinfo, within_userinfo

Constructor Summary

HttpsURL()
Create an instance as an internal use.
HttpsURL(char[] escaped)
Construct a HTTPS URL as an escaped form of a character array.
HttpsURL(char[] escaped, String charset)
Construct a HTTPS URL as an escaped form of a character array with the given charset to do escape encoding.
HttpsURL(String original)
Construct a HTTPS URL from a given string.
HttpsURL(String host, int port, String path)
Construct a HTTPS URL from given components.
HttpsURL(String host, int port, String path, String query)
Construct a HTTPS URL from given components.
HttpsURL(String original, String charset)
Construct a HTTPS URL from a given string with the given charset to do escape encoding.
HttpsURL(String userinfo, String host, int port, String path)
Construct a HTTPS URL from given components.
HttpsURL(String userinfo, String host, int port, String path, String query)
Construct a HTTPS URL from given components.
HttpsURL(String userinfo, String host, int port, String path, String query, String fragment)
Construct a HTTPS URL from given components.
HttpsURL(String user, String password, String host)
Construct a HTTPS URL from given components.
HttpsURL(String user, String password, String host, int port)
Construct a HTTPS URL from given components.
HttpsURL(String user, String password, String host, int port, String path)
Construct a HTTPS URL from given components.
HttpsURL(String user, String password, String host, int port, String path, String query)
Construct a HTTPS URL from given components.
HttpsURL(String user, String password, String host, int port, String path, String query, String fragment)
Construct a HTTP URL from given components.
HttpsURL(String host, String path, String query, String fragment)
Construct a HTTPS URL from given components.
HttpsURL(String userinfo, String host, String path, String query, String fragment)
Construct a HTTPS URL from given components.
HttpsURL(HttpsURL base, String relative)
Construct a HTTPS URL with a given relative HTTPS URL string.
HttpsURL(HttpsURL base, HttpsURL relative)
Construct a HTTPS URL with a given relative URL.

Method Summary

protected void
checkValid()
Verify the valid class use for construction.
int
getPort()
Get the port number.
char[]
getRawScheme()
Get the scheme.
String
getScheme()
Get the scheme.

Methods inherited from class org.apache.commons.httpclient.HttpURL

checkValid, getEscapedPassword, getEscapedUser, getPassword, getPort, getRawAboveHierPath, getRawCurrentHierPath, getRawPassword, getRawPath, getRawScheme, getRawUser, getScheme, getUser, setEscapedPassword, setEscapedUser, setEscapedUserinfo, setPassword, setQuery, setQuery, setRawPassword, setRawUser, setRawUserinfo, setURI, setUser, setUserinfo, toUserinfo

Methods inherited from class org.apache.commons.httpclient.URI

clone, compareTo, decode, decode, encode, equals, equals, getAboveHierPath, getAuthority, getCurrentHierPath, getDefaultDocumentCharset, getDefaultDocumentCharsetByLocale, getDefaultDocumentCharsetByPlatform, getDefaultProtocolCharset, getEscapedAboveHierPath, getEscapedAuthority, getEscapedCurrentHierPath, getEscapedFragment, getEscapedName, getEscapedPath, getEscapedPathQuery, getEscapedQuery, getEscapedURI, getEscapedURIReference, getEscapedUserinfo, getFragment, getHost, getName, getPath, getPathQuery, getPort, getProtocolCharset, getQuery, getRawAboveHierPath, getRawAuthority, getRawCurrentHierPath, getRawCurrentHierPath, getRawFragment, getRawHost, getRawName, getRawPath, getRawPathQuery, getRawQuery, getRawScheme, getRawURI, getRawURIReference, getRawUserinfo, getScheme, getURI, getURIReference, getUserinfo, hasAuthority, hasFragment, hasQuery, hasUserinfo, hashCode, indexFirstOf, indexFirstOf, indexFirstOf, indexFirstOf, isAbsPath, isAbsoluteURI, isHierPart, isHostname, isIPv4address, isIPv6reference, isNetPath, isOpaquePart, isRegName, isRelPath, isRelativeURI, isServer, normalize, normalize, parseAuthority, parseUriReference, prevalidate, removeFragmentIdentifier, resolvePath, setDefaultDocumentCharset, setDefaultProtocolCharset, setEscapedAuthority, setEscapedFragment, setEscapedPath, setEscapedQuery, setFragment, setPath, setQuery, setRawAuthority, setRawFragment, setRawPath, setRawQuery, setURI, toString, validate, validate

Methods inherited from class java.lang.Object

clone, equals, extends Object> getClass, finalize, hashCode, notify, notifyAll, toString, wait, wait, wait

Field Details

DEFAULT_PORT

public static final int DEFAULT_PORT
Default port for HTTPS URL.
Field Value:
443
Usages and Demos :

View More Examples of HttpsURL.DEFAULT_PORT
   1:                     (ProtocolSocketFactory) new EasySSLProtocolSocketFactory(),
   2:                     HttpsURL.DEFAULT_PORT));
   3: 
   4:     public HttpHostFactory(Protocol httpProtocol, Protocol httpsProtocol)
   5:     {

View Full Code Here

DEFAULT_SCHEME

public static final char[] DEFAULT_SCHEME
Default scheme for HTTPS URL.

_default_port

public static final int _default_port

Deprecated. Use DEFAULT_PORT instead. This one doesn't conform to the project naming conventions.

Default port for HTTPS URL.
Field Value:
443

_default_scheme

public static final char[] _default_scheme

Deprecated. Use DEFAULT_SCHEME instead. This one doesn't conform to the project naming conventions.

Default scheme for HTTPS URL.

Constructor Details

HttpsURL

protected HttpsURL()
Create an instance as an internal use.

HttpsURL

public HttpsURL(char[] escaped)
            throws URIException,
                   NullPointerException
Construct a HTTPS URL as an escaped form of a character array.
Parameters:
escaped - the HTTPS URL character sequence
Throws:
URIException - If checkValid() fails
NullPointerException - if escaped is null
See Also:
HttpsURL

HttpsURL

public HttpsURL(char[] escaped,
                String charset)
            throws URIException,
                   NullPointerException
Construct a HTTPS URL as an escaped form of a character array with the given charset to do escape encoding.
Parameters:
escaped - the HTTPS URL character sequence
charset - the charset to do escape encoding
Throws:
URIException - If checkValid() fails
NullPointerException - if escaped is null
See Also:
HttpsURL

HttpsURL

public HttpsURL(String original)
            throws URIException
Construct a HTTPS URL from a given string.
Parameters:
original - the HTTPS URL string
Throws:
URIException - If checkValid() fails
See Also:
HttpsURL

HttpsURL

public HttpsURL(String host,
                int port,
                String path)
            throws URIException
Construct a HTTPS URL from given components.
Parameters:
host - the host string
port - the port number
path - the path string
Throws:
URIException - If checkValid() fails
See Also:
HttpsURL

HttpsURL

public HttpsURL(String host,
                int port,
                String path,
                String query)
            throws URIException
Construct a HTTPS URL from given components.
Parameters:
host - the host string
port - the port number
path - the path string
query - the query string
Throws:
URIException - If checkValid() fails
See Also:
HttpsURL

HttpsURL

public HttpsURL(String original,
                String charset)
            throws URIException
Construct a HTTPS URL from a given string with the given charset to do escape encoding.
Parameters:
original - the HTTPS URL string
charset - the charset to do escape encoding
Throws:
URIException - If checkValid() fails
See Also:
HttpsURL

HttpsURL

public HttpsURL(String userinfo,
                String host,
                int port,
                String path)
            throws URIException
Construct a HTTPS URL from given components. Note: The userinfo format is normally <username>:<password> where username and password must both be URL escaped.
Parameters:
userinfo - the userinfo string whose parts are URL escaped
host - the host string
port - the port number
path - the path string
Throws:
URIException - If checkValid() fails
See Also:
HttpsURL

HttpsURL

public HttpsURL(String userinfo,
                String host,
                int port,
                String path,
                String query)
            throws URIException
Construct a HTTPS URL from given components. Note: The userinfo format is normally <username>:<password> where username and password must both be URL escaped.
Parameters:
userinfo - the userinfo string whose parts are URL escaped
host - the host string
port - the port number
path - the path string
query - the query string
Throws:
URIException - If checkValid() fails
See Also:
HttpsURL

HttpsURL

public HttpsURL(String userinfo,
                String host,
                int port,
                String path,
                String query,
                String fragment)
            throws URIException
Construct a HTTPS URL from given components. Note: The userinfo format is normally <username>:<password> where username and password must both be URL escaped.
Parameters:
userinfo - the userinfo string whose parts are URL escaped
host - the host string
port - the port number
path - the path string
query - the query string
fragment - the fragment string
Throws:
URIException - If checkValid() fails
See Also:
HttpsURL

HttpsURL

public HttpsURL(String user,
                String password,
                String host)
            throws URIException
Construct a HTTPS URL from given components.
Parameters:
user - the user name
password - his or her password
host - the host string
Throws:
URIException - If checkValid() fails
See Also:
HttpsURL

HttpsURL

public HttpsURL(String user,
                String password,
                String host,
                int port)
            throws URIException
Construct a HTTPS URL from given components.
Parameters:
user - the user name
password - his or her password
host - the host string
port - the port number
Throws:
URIException - If checkValid() fails
See Also:
HttpsURL

HttpsURL

public HttpsURL(String user,
                String password,
                String host,
                int port,
                String path)
            throws URIException
Construct a HTTPS URL from given components.
Parameters:
user - the user name
password - his or her password
host - the host string
port - the port number
path - the path string
Throws:
URIException - If checkValid() fails
See Also:
HttpsURL

HttpsURL

public HttpsURL(String user,
                String password,
                String host,
                int port,
                String path,
                String query)
            throws URIException
Construct a HTTPS URL from given components.
Parameters:
user - the user name
password - his or her password
host - the host string
port - the port number
path - the path string
query - The query string.
Throws:
URIException - If checkValid() fails
See Also:
HttpsURL

HttpsURL

public HttpsURL(String user,
                String password,
                String host,
                int port,
                String path,
                String query,
                String fragment)
            throws URIException
Construct a HTTP URL from given components.
Parameters:
user - the user name
password - his or her password
host - the host string
port - the port number
path - the path string
query - the query string
fragment - the fragment string
Throws:
URIException - If checkValid() fails
See Also:
HttpsURL

HttpsURL

public HttpsURL(String host,
                String path,
                String query,
                String fragment)
            throws URIException
Construct a HTTPS URL from given components.
Parameters:
host - the host string
path - the path string
query - the query string
fragment - the fragment string
Throws:
URIException - If checkValid() fails
See Also:
HttpsURL

HttpsURL

public HttpsURL(String userinfo,
                String host,
                String path,
                String query,
                String fragment)
            throws URIException
Construct a HTTPS URL from given components. Note: The userinfo format is normally <username>:<password> where username and password must both be URL escaped.
Parameters:
userinfo - the userinfo string whose parts are URL escaped
host - the host string
path - the path string
query - the query string
fragment - the fragment string
Throws:
URIException - If checkValid() fails
See Also:
HttpsURL

HttpsURL

public HttpsURL(HttpsURL base,
                String relative)
            throws URIException
Construct a HTTPS URL with a given relative HTTPS URL string.
Parameters:
base - the base HttpsURL
relative - the relative HTTPS URL string
Throws:
URIException - If checkValid() fails

HttpsURL

public HttpsURL(HttpsURL base,
                HttpsURL relative)
            throws URIException
Construct a HTTPS URL with a given relative URL.
Parameters:
base - the base HttpsURL
relative - the relative HttpsURL
Throws:
URIException - If checkValid() fails

Method Details

checkValid

protected void checkValid()
            throws URIException
Verify the valid class use for construction.
Overrides:
checkValid in interface HttpURL
Throws:
URIException - the wrong scheme use

getPort

public int getPort()
Get the port number.
Overrides:
getPort in interface HttpURL
Returns:
the port number

getRawScheme

public char[] getRawScheme()
Get the scheme. You can get the scheme explicitly.
Overrides:
getRawScheme in interface HttpURL
Returns:
the scheme

getScheme

public String getScheme()
Get the scheme. You can get the scheme explicitly.
Overrides:
getScheme in interface HttpURL
Returns:
the scheme null if empty or undefined