|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.microsoft.tfs.core.httpclient.URI
com.microsoft.tfs.core.httpclient.HttpURL
com.microsoft.tfs.core.httpclient.HttpsURL
public class HttpsURL
The HTTPS URL.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.microsoft.tfs.core.httpclient.URI |
---|
URI.DefaultCharsetChanged, URI.LocaleToCharsetMap |
Field Summary | |
---|---|
static int |
_default_port
Deprecated. Use DEFAULT_PORT instead. This one doesn't conform
to the project naming conventions. |
static char[] |
_default_scheme
Deprecated. Use DEFAULT_SCHEME instead. This one doesn't conform
to the project naming conventions. |
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,
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. |
Method Summary | |
---|---|
protected void |
checkValid()
Verify the valid class use for construction. |
int |
getPort()
Get the port number. |
char[] |
getRawScheme()
Get the scheme. |
java.lang.String |
getScheme()
Get the scheme. |
Methods inherited from class com.microsoft.tfs.core.httpclient.HttpURL |
---|
getEscapedPassword, getEscapedUser, getPassword, getRawAboveHierPath, getRawCurrentHierPath, getRawPassword, getRawPath, getRawUser, getUser, setEscapedPassword, setEscapedUser, setEscapedUserinfo, setPassword, setQuery, setQuery, setRawPassword, setRawUser, setRawUserinfo, setURI, 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
@Deprecated public static final char[] _default_scheme
DEFAULT_SCHEME
instead. This one doesn't conform
to the project naming conventions.
public static final int DEFAULT_PORT
443
@Deprecated public static final int _default_port
DEFAULT_PORT
instead. This one doesn't conform
to the project naming conventions.
443
Constructor Detail |
---|
protected HttpsURL()
public HttpsURL(char[] escaped, java.lang.String charset) throws URIException, java.lang.NullPointerException
escaped
- the HTTPS URL character sequencecharset
- the charset to do escape encodingURI.getProtocolCharset()
URIException
- If checkValid()
fails
java.lang.NullPointerException
- if escaped
is null
public HttpsURL(char[] escaped) throws URIException, java.lang.NullPointerException
escaped
- the HTTPS URL character sequenceURI.getDefaultProtocolCharset()
URIException
- If checkValid()
fails
java.lang.NullPointerException
- if escaped
is null
public HttpsURL(java.lang.String original, java.lang.String charset) throws URIException
original
- the HTTPS URL stringcharset
- the charset to do escape encodingURI.getProtocolCharset()
URIException
- If checkValid()
failspublic HttpsURL(java.lang.String original) throws URIException
original
- the HTTPS URL stringURI.getDefaultProtocolCharset()
URIException
- If checkValid()
failspublic HttpsURL(java.lang.String host, int port, java.lang.String path) throws URIException
host
- the host stringport
- the port numberpath
- the path stringURI.getDefaultProtocolCharset()
URIException
- If checkValid()
failspublic HttpsURL(java.lang.String host, int port, java.lang.String path, java.lang.String query) throws URIException
host
- the host stringport
- the port numberpath
- the path stringquery
- the query stringURI.getDefaultProtocolCharset()
URIException
- If checkValid()
failspublic HttpsURL(java.lang.String user, java.lang.String password, java.lang.String host) throws URIException
user
- the user namepassword
- his or her passwordhost
- the host stringURI.getDefaultProtocolCharset()
URIException
- If checkValid()
failspublic HttpsURL(java.lang.String user, java.lang.String password, java.lang.String host, int port) throws URIException
user
- the user namepassword
- his or her passwordhost
- the host stringport
- the port numberURI.getDefaultProtocolCharset()
URIException
- If checkValid()
failspublic HttpsURL(java.lang.String user, java.lang.String password, java.lang.String host, int port, java.lang.String path) throws URIException
user
- the user namepassword
- his or her passwordhost
- the host stringport
- the port numberpath
- the path stringURI.getDefaultProtocolCharset()
URIException
- If checkValid()
failspublic HttpsURL(java.lang.String user, java.lang.String password, java.lang.String host, int port, java.lang.String path, java.lang.String query) throws URIException
user
- the user namepassword
- his or her passwordhost
- the host stringport
- the port numberpath
- the path stringquery
- The query string.URI.getDefaultProtocolCharset()
URIException
- If checkValid()
failspublic HttpsURL(java.lang.String host, java.lang.String path, java.lang.String query, java.lang.String fragment) throws URIException
host
- the host stringpath
- the path stringquery
- the query stringfragment
- the fragment stringURI.getDefaultProtocolCharset()
URIException
- If checkValid()
failspublic HttpsURL(java.lang.String userinfo, java.lang.String host, java.lang.String path, java.lang.String query, java.lang.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 stringURI.getDefaultProtocolCharset()
URIException
- If checkValid()
failspublic HttpsURL(java.lang.String userinfo, java.lang.String host, int port, java.lang.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 stringURI.getDefaultProtocolCharset()
URIException
- If checkValid()
failspublic HttpsURL(java.lang.String userinfo, java.lang.String host, int port, java.lang.String path, java.lang.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 stringURI.getDefaultProtocolCharset()
URIException
- If checkValid()
failspublic HttpsURL(java.lang.String userinfo, java.lang.String host, int port, java.lang.String path, java.lang.String query, java.lang.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 stringURI.getDefaultProtocolCharset()
URIException
- If checkValid()
failspublic 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) throws URIException
user
- the user namepassword
- his or her passwordhost
- the host stringport
- the port numberpath
- the path stringquery
- the query stringfragment
- the fragment stringURI.getDefaultProtocolCharset()
URIException
- If checkValid()
failspublic HttpsURL(HttpsURL base, java.lang.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 java.lang.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 |