public class HttpsURL extends HttpURL
URI.DefaultCharsetChanged, URI.LocaleToCharsetMap| Modifier and Type | Field and Description |
|---|---|
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.
|
_authority, _fragment, _host, _is_abs_path, _is_hier_part, _is_hostname, _is_IPv4address, _is_IPv6reference, _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_abs_path, allowed_authority, allowed_fragment, allowed_host, allowed_IPv6reference, 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, IPv4address, IPv6address, IPv6reference, 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, URI_reference, uric, uric_no_slash, userinfo, within_userinfo| Modifier | Constructor and Description |
|---|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
getEscapedPassword, getEscapedUser, getPassword, getRawAboveHierPath, getRawCurrentHierPath, getRawPassword, getRawPath, getRawUser, getUser, setEscapedPassword, setEscapedUser, setEscapedUserinfo, setPassword, setQuery, setQuery, setRawPassword, setRawUser, setRawUserinfo, setURI, setUser, setUserinfo, toUserinfoclone, 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, getProtocolCharset, getQuery, getRawAuthority, getRawCurrentHierPath, getRawFragment, getRawHost, getRawName, getRawPathQuery, getRawQuery, getRawURI, getRawURIReference, getRawUserinfo, getURI, getURIReference, getUserinfo, hasAuthority, hasFragment, hashCode, hasQuery, hasUserinfo, indexFirstOf, indexFirstOf, indexFirstOf, indexFirstOf, isAbsoluteURI, isAbsPath, isHierPart, isHostname, isIPv4address, isIPv6reference, isNetPath, isOpaquePart, isRegName, isRelativeURI, isRelPath, isServer, normalize, normalize, parseAuthority, parseUriReference, prevalidate, removeFragmentIdentifier, resolvePath, setDefaultDocumentCharset, setDefaultProtocolCharset, setEscapedAuthority, setEscapedFragment, setEscapedPath, setEscapedQuery, setFragment, setPath, setQuery, setRawAuthority, setRawFragment, setRawPath, setRawQuery, toString, validate, validatepublic static final char[] DEFAULT_SCHEME
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
public static final int _default_port
DEFAULT_PORT instead. This one doesn't conform
to the project naming conventions.protected HttpsURL()
public HttpsURL(char[] escaped,
String charset)
throws URIException,
NullPointerException
escaped - the HTTPS URL character sequencecharset - the charset to do escape encodingURIException - If checkValid() failsNullPointerException - if escaped is nullURI.getProtocolCharset()public HttpsURL(char[] escaped)
throws URIException,
NullPointerException
escaped - the HTTPS URL character sequenceURIException - If checkValid() failsNullPointerException - if escaped is nullURI.getDefaultProtocolCharset()public HttpsURL(String original, String charset) throws URIException
original - the HTTPS URL stringcharset - the charset to do escape encodingURIException - If checkValid() failsURI.getProtocolCharset()public HttpsURL(String original) throws URIException
original - the HTTPS URL stringURIException - If checkValid() failsURI.getDefaultProtocolCharset()public HttpsURL(String host, int port, String path) throws URIException
host - the host stringport - the port numberpath - the path stringURIException - If checkValid() failsURI.getDefaultProtocolCharset()public HttpsURL(String host, int port, String path, String query) throws URIException
host - the host stringport - the port numberpath - the path stringquery - the query stringURIException - If checkValid() failsURI.getDefaultProtocolCharset()public HttpsURL(String user, String password, String host) throws URIException
user - the user namepassword - his or her passwordhost - the host stringURIException - If checkValid() failsURI.getDefaultProtocolCharset()public HttpsURL(String user, String password, String host, int port) throws URIException
user - the user namepassword - his or her passwordhost - the host stringport - the port numberURIException - If checkValid() failsURI.getDefaultProtocolCharset()public 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 stringURIException - If checkValid() failsURI.getDefaultProtocolCharset()public 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() failsURI.getDefaultProtocolCharset()public HttpsURL(String host, String path, String query, String fragment) throws URIException
host - the host stringpath - the path stringquery - the query stringfragment - the fragment stringURIException - If checkValid() failsURI.getDefaultProtocolCharset()public 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 stringURIException - If checkValid() failsURI.getDefaultProtocolCharset()public 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 stringURIException - If checkValid() failsURI.getDefaultProtocolCharset()public 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 stringURIException - If checkValid() failsURI.getDefaultProtocolCharset()public 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 stringURIException - If checkValid() failsURI.getDefaultProtocolCharset()public 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 stringURIException - If checkValid() failsURI.getDefaultProtocolCharset()public HttpsURL(HttpsURL base, String relative) throws URIException
base - the base HttpsURLrelative - the relative HTTPS URL stringURIException - If checkValid() failspublic HttpsURL(HttpsURL base, HttpsURL relative) throws URIException
base - the base HttpsURLrelative - the relative HttpsURLURIException - If checkValid() failspublic char[] getRawScheme()
getRawScheme in class HttpURLpublic String getScheme()
public int getPort()
protected void checkValid()
throws URIException
checkValid in class HttpURLURIException - the wrong scheme useCopyright © 2020 Internet2. All rights reserved.