Package org.apache.commons.httpclient
Class HttpsURL
- java.lang.Object
-
- org.apache.commons.httpclient.URI
-
- org.apache.commons.httpclient.HttpURL
-
- org.apache.commons.httpclient.HttpsURL
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
,java.lang.Comparable
@Deprecated public class HttpsURL extends HttpURL
Deprecated.Jakarta Commons HttpClient 3.x is deprecated in the Jenkins project. It is not recommended to use it in any new code. Instead, use HTTP client API plugins as a dependency in your code. E.g. Apache HttpComponents Client API 4.x Plugin or Async HTTP Client Plugin.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
Fields Modifier and Type Field Description static int
_default_port
Deprecated.UseDEFAULT_PORT
instead.static char[]
_default_scheme
Deprecated.UseDEFAULT_SCHEME
instead.static int
DEFAULT_PORT
Deprecated.Default port for HTTPS URL.static char[]
DEFAULT_SCHEME
Deprecated.Default scheme for HTTPS URL.-
Fields inherited from class org.apache.commons.httpclient.URI
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, control, delims, disallowed_opaque_part, disallowed_rel_path, space, unwise, within_userinfo
-
-
Constructor Summary
Constructors Constructor Description HttpsURL(char[] escaped)
Deprecated.Construct a HTTPS URL as an escaped form of a character array.HttpsURL(char[] escaped, java.lang.String charset)
Deprecated.Construct a HTTPS URL as an escaped form of a character array with the given charset to do escape encoding.HttpsURL(java.lang.String original)
Deprecated.Construct a HTTPS URL from a given string.HttpsURL(java.lang.String host, int port, java.lang.String path)
Deprecated.Construct a HTTPS URL from given components.HttpsURL(java.lang.String host, int port, java.lang.String path, java.lang.String query)
Deprecated.Construct a HTTPS URL from given components.HttpsURL(java.lang.String original, java.lang.String charset)
Deprecated.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)
Deprecated.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)
Deprecated.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)
Deprecated.Construct a HTTPS URL from given components.HttpsURL(java.lang.String user, java.lang.String password, java.lang.String host)
Deprecated.Construct a HTTPS URL from given components.HttpsURL(java.lang.String user, java.lang.String password, java.lang.String host, int port)
Deprecated.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)
Deprecated.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)
Deprecated.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)
Deprecated.Construct a HTTP URL from given components.HttpsURL(java.lang.String host, java.lang.String path, java.lang.String query, java.lang.String fragment)
Deprecated.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)
Deprecated.Construct a HTTPS URL from given components.HttpsURL(HttpsURL base, java.lang.String relative)
Deprecated.Construct a HTTPS URL with a given relative HTTPS URL string.HttpsURL(HttpsURL base, HttpsURL relative)
Deprecated.Construct a HTTPS URL with a given relative URL.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description int
getPort()
Deprecated.Get the port number.char[]
getRawScheme()
Deprecated.Get the scheme.java.lang.String
getScheme()
Deprecated.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
-
Methods inherited from class org.apache.commons.httpclient.URI
clone, compareTo, 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, getRawFragment, getRawHost, getRawName, getRawPathQuery, getRawQuery, getRawURI, getRawURIReference, getRawUserinfo, getURI, getURIReference, getUserinfo, hasAuthority, hasFragment, hashCode, hasQuery, hasUserinfo, isAbsoluteURI, isAbsPath, isHierPart, isHostname, isIPv4address, isIPv6reference, isNetPath, isOpaquePart, isRegName, isRelativeURI, isRelPath, isServer, normalize, setDefaultDocumentCharset, setDefaultProtocolCharset, setEscapedAuthority, setEscapedFragment, setEscapedPath, setEscapedQuery, setFragment, setPath, setQuery, setRawAuthority, setRawFragment, setRawPath, setRawQuery, toString
-
-
-
-
Field Detail
-
DEFAULT_SCHEME
public static final char[] DEFAULT_SCHEME
Deprecated.Default scheme for HTTPS URL.
-
_default_scheme
public static final char[] _default_scheme
Deprecated.UseDEFAULT_SCHEME
instead. This one doesn't conform to the project naming conventions.Default scheme for HTTPS URL.
-
DEFAULT_PORT
public static final int DEFAULT_PORT
Deprecated.Default port for HTTPS URL.- See Also:
- Constant Field Values
-
_default_port
public static final int _default_port
Deprecated.UseDEFAULT_PORT
instead. This one doesn't conform to the project naming conventions.Default port for HTTPS URL.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
HttpsURL
public HttpsURL(char[] escaped, java.lang.String charset) throws URIException, java.lang.NullPointerException
Deprecated.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 sequencecharset
- the charset to do escape encoding- Throws:
URIException
- IfcheckValid()
failsjava.lang.NullPointerException
- ifescaped
isnull
- See Also:
URI.getProtocolCharset()
-
HttpsURL
public HttpsURL(char[] escaped) throws URIException, java.lang.NullPointerException
Deprecated.Construct a HTTPS URL as an escaped form of a character array.- Parameters:
escaped
- the HTTPS URL character sequence- Throws:
URIException
- IfcheckValid()
failsjava.lang.NullPointerException
- ifescaped
isnull
- See Also:
URI.getDefaultProtocolCharset()
-
HttpsURL
public HttpsURL(java.lang.String original, java.lang.String charset) throws URIException
Deprecated.Construct a HTTPS URL from a given string with the given charset to do escape encoding.- Parameters:
original
- the HTTPS URL stringcharset
- the charset to do escape encoding- Throws:
URIException
- IfcheckValid()
fails- See Also:
URI.getProtocolCharset()
-
HttpsURL
public HttpsURL(java.lang.String original) throws URIException
Deprecated.Construct a HTTPS URL from a given string.- Parameters:
original
- the HTTPS URL string- Throws:
URIException
- IfcheckValid()
fails- See Also:
URI.getDefaultProtocolCharset()
-
HttpsURL
public HttpsURL(java.lang.String host, int port, java.lang.String path) throws URIException
Deprecated.Construct a HTTPS URL from given components.- Parameters:
host
- the host stringport
- the port numberpath
- the path string- Throws:
URIException
- IfcheckValid()
fails- See Also:
URI.getDefaultProtocolCharset()
-
HttpsURL
public HttpsURL(java.lang.String host, int port, java.lang.String path, java.lang.String query) throws URIException
Deprecated.Construct a HTTPS URL from given components.- Parameters:
host
- the host stringport
- the port numberpath
- the path stringquery
- the query string- Throws:
URIException
- IfcheckValid()
fails- See Also:
URI.getDefaultProtocolCharset()
-
HttpsURL
public HttpsURL(java.lang.String user, java.lang.String password, java.lang.String host) throws URIException
Deprecated.Construct a HTTPS URL from given components.- Parameters:
user
- the user namepassword
- his or her passwordhost
- the host string- Throws:
URIException
- IfcheckValid()
fails- See Also:
URI.getDefaultProtocolCharset()
-
HttpsURL
public HttpsURL(java.lang.String user, java.lang.String password, java.lang.String host, int port) throws URIException
Deprecated.Construct a HTTPS URL from given components.- Parameters:
user
- the user namepassword
- his or her passwordhost
- the host stringport
- the port number- Throws:
URIException
- IfcheckValid()
fails- See Also:
URI.getDefaultProtocolCharset()
-
HttpsURL
public HttpsURL(java.lang.String user, java.lang.String password, java.lang.String host, int port, java.lang.String path) throws URIException
Deprecated.Construct a HTTPS URL from given components.- Parameters:
user
- the user namepassword
- his or her passwordhost
- the host stringport
- the port numberpath
- the path string- Throws:
URIException
- IfcheckValid()
fails- See Also:
URI.getDefaultProtocolCharset()
-
HttpsURL
public 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
Deprecated.Construct a HTTPS URL from given components.- Parameters:
user
- the user namepassword
- his or her passwordhost
- the host stringport
- the port numberpath
- the path stringquery
- The query string.- Throws:
URIException
- IfcheckValid()
fails- See Also:
URI.getDefaultProtocolCharset()
-
HttpsURL
public HttpsURL(java.lang.String host, java.lang.String path, java.lang.String query, java.lang.String fragment) throws URIException
Deprecated.Construct a HTTPS URL from given components.- Parameters:
host
- the host stringpath
- the path stringquery
- the query stringfragment
- the fragment string- Throws:
URIException
- IfcheckValid()
fails- See Also:
URI.getDefaultProtocolCharset()
-
HttpsURL
public HttpsURL(java.lang.String userinfo, java.lang.String host, java.lang.String path, java.lang.String query, java.lang.String fragment) throws URIException
Deprecated.Construct a HTTPS URL from given components. Note: Theuserinfo
format is normally<username>:<password>
where username and password must both be URL escaped.- Parameters:
userinfo
- the userinfo string whose parts are URL escapedhost
- the host stringpath
- the path stringquery
- the query stringfragment
- the fragment string- Throws:
URIException
- IfcheckValid()
fails- See Also:
URI.getDefaultProtocolCharset()
-
HttpsURL
public HttpsURL(java.lang.String userinfo, java.lang.String host, int port, java.lang.String path) throws URIException
Deprecated.Construct a HTTPS URL from given components. Note: Theuserinfo
format is normally<username>:<password>
where username and password must both be URL escaped.- Parameters:
userinfo
- the userinfo string whose parts are URL escapedhost
- the host stringport
- the port numberpath
- the path string- Throws:
URIException
- IfcheckValid()
fails- See Also:
URI.getDefaultProtocolCharset()
-
HttpsURL
public HttpsURL(java.lang.String userinfo, java.lang.String host, int port, java.lang.String path, java.lang.String query) throws URIException
Deprecated.Construct a HTTPS URL from given components. Note: Theuserinfo
format is normally<username>:<password>
where username and password must both be URL escaped.- Parameters:
userinfo
- the userinfo string whose parts are URL escapedhost
- the host stringport
- the port numberpath
- the path stringquery
- the query string- Throws:
URIException
- IfcheckValid()
fails- See Also:
URI.getDefaultProtocolCharset()
-
HttpsURL
public 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
Deprecated.Construct a HTTPS URL from given components. Note: Theuserinfo
format is normally<username>:<password>
where username and password must both be URL escaped.- Parameters:
userinfo
- the userinfo string whose parts are URL escapedhost
- the host stringport
- the port numberpath
- the path stringquery
- the query stringfragment
- the fragment string- Throws:
URIException
- IfcheckValid()
fails- See Also:
URI.getDefaultProtocolCharset()
-
HttpsURL
public 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
Deprecated.Construct a HTTP URL from given components.- Parameters:
user
- the user namepassword
- his or her passwordhost
- the host stringport
- the port numberpath
- the path stringquery
- the query stringfragment
- the fragment string- Throws:
URIException
- IfcheckValid()
fails- See Also:
URI.getDefaultProtocolCharset()
-
HttpsURL
public HttpsURL(HttpsURL base, java.lang.String relative) throws URIException
Deprecated.Construct a HTTPS URL with a given relative HTTPS URL string.- Parameters:
base
- the base HttpsURLrelative
- the relative HTTPS URL string- Throws:
URIException
- IfcheckValid()
fails
-
HttpsURL
public HttpsURL(HttpsURL base, HttpsURL relative) throws URIException
Deprecated.Construct a HTTPS URL with a given relative URL.- Parameters:
base
- the base HttpsURLrelative
- the relative HttpsURL- Throws:
URIException
- IfcheckValid()
fails
-
-
Method Detail
-
getRawScheme
public char[] getRawScheme()
Deprecated.Get the scheme. You can get the scheme explicitly.- Overrides:
getRawScheme
in classHttpURL
- Returns:
- the scheme
-
getScheme
public java.lang.String getScheme()
Deprecated.Get the scheme. You can get the scheme explicitly.
-
-