|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.commons.httpclient.URI org.apache.commons.httpclient.HttpURL org.apache.commons.httpclient.HttpsURL
public class HttpsURL
The HTTPS URL.
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. |
Constructor Summary | |
---|---|
protected |
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(HttpsURL base,
HttpsURL relative)
Construct a HTTPS URL with a given relative URL. |
|
HttpsURL(HttpsURL base,
String relative)
Construct a HTTPS URL with a given relative HTTPS URL string. |
|
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. |
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 |
---|
getEscapedPassword, getEscapedUser, getPassword, getRawAboveHierPath, getRawCurrentHierPath, getRawPassword, getRawPath, getRawUser, getUser, setEscapedPassword, setEscapedUser, setEscapedUserinfo, setPassword, setQuery, setQuery, setRawPassword, setRawUser, setRawUserinfo, setUser, setUserinfo, toUserinfo |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final char[] DEFAULT_SCHEME
public static final int DEFAULT_PORT
Constructor Detail |
---|
protected HttpsURL()
public HttpsURL(char[] escaped, String charset) throws URIException, NullPointerException
escaped
- the HTTPS URL character sequencecharset
- the charset to do escape encoding
URIException
- If checkValid()
fails
NullPointerException
- if escaped
is null
public HttpsURL(char[] escaped) throws URIException, NullPointerException
escaped
- the HTTPS URL character sequence
URIException
- If checkValid()
fails
NullPointerException
- if escaped
is null
public HttpsURL(String original, String charset) throws URIException
original
- the HTTPS URL stringcharset
- the charset to do escape encoding
URIException
- If checkValid()
failspublic HttpsURL(String original) throws URIException
original
- the HTTPS URL string
URIException
- If checkValid()
failspublic HttpsURL(String host, int port, String path) throws URIException
host
- the host stringport
- the port numberpath
- the path string
URIException
- If checkValid()
failspublic HttpsURL(String host, int port, String path, String query) throws URIException
host
- the host stringport
- the port numberpath
- the path stringquery
- the query string
URIException
- If checkValid()
failspublic HttpsURL(String user, String password, String host) throws URIException
user
- the user namepassword
- his or her passwordhost
- the host string
URIException
- If checkValid()
failspublic HttpsURL(String user, String password, String host, int port) throws URIException
user
- the user namepassword
- his or her passwordhost
- the host stringport
- the port number
URIException
- If checkValid()
failspublic HttpsURL(String user, String password, String host, int port, String path) throws URIException
user
- the user namepassword
- his or her passwordhost
- the host stringport
- the port numberpath
- the path string
URIException
- If checkValid()
failspublic HttpsURL(String user, String password, String host, int port, String path, String query) throws URIException
user
- the user namepassword
- his or her passwordhost
- the host stringport
- the port numberpath
- the path stringquery
- The query string.
URIException
- If checkValid()
failspublic HttpsURL(String host, String path, String query, String fragment) throws URIException
host
- the host stringpath
- the path stringquery
- the query stringfragment
- the fragment string
URIException
- If checkValid()
failspublic HttpsURL(String userinfo, String host, String path, String query, String fragment) throws URIException
userinfo
format is normally
<username>:<password>
where
username and password must both be URL escaped.
userinfo
- the userinfo string whose parts are URL escapedhost
- the host stringpath
- the path stringquery
- the query stringfragment
- the fragment string
URIException
- If checkValid()
failspublic HttpsURL(String userinfo, String host, int port, String path) throws URIException
userinfo
format is normally
<username>:<password>
where
username and password must both be URL escaped.
userinfo
- the userinfo string whose parts are URL escapedhost
- the host stringport
- the port numberpath
- the path string
URIException
- If checkValid()
failspublic HttpsURL(String userinfo, String host, int port, String path, String query) throws URIException
userinfo
format is normally
<username>:<password>
where
username and password must both be URL escaped.
userinfo
- the userinfo string whose parts are URL escapedhost
- the host stringport
- the port numberpath
- the path stringquery
- the query string
URIException
- If checkValid()
failspublic HttpsURL(String userinfo, String host, int port, String path, String query, String fragment) throws URIException
userinfo
format is normally
<username>:<password>
where
username and password must both be URL escaped.
userinfo
- the userinfo string whose parts are URL escapedhost
- the host stringport
- the port numberpath
- the path stringquery
- the query stringfragment
- the fragment string
URIException
- If checkValid()
failspublic HttpsURL(String user, String password, String host, int port, String path, String query, String fragment) throws URIException
user
- the user namepassword
- his or her passwordhost
- the host stringport
- the port numberpath
- the path stringquery
- the query stringfragment
- the fragment string
URIException
- If checkValid()
failspublic HttpsURL(HttpsURL base, String relative) throws URIException
base
- the base HttpsURLrelative
- the relative HTTPS URL string
URIException
- If checkValid()
failspublic HttpsURL(HttpsURL base, HttpsURL relative) throws URIException
base
- the base HttpsURLrelative
- the relative HttpsURL
URIException
- If checkValid()
failsMethod Detail |
---|
public char[] getRawScheme()
getRawScheme
in class HttpURL
public String getScheme()
getScheme
in class HttpURL
public int getPort()
getPort
in class HttpURL
protected void checkValid() throws URIException
checkValid
in class HttpURL
URIException
- the wrong scheme use
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |