Class HttpsURL

All Implemented Interfaces:
Serializable, Cloneable, 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:
  • Field Details

    • DEFAULT_SCHEME

      public static final char[] DEFAULT_SCHEME
      Deprecated.
      Default scheme for HTTPS URL.
    • _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.
    • DEFAULT_PORT

      public static final int DEFAULT_PORT
      Deprecated.
      Default port for HTTPS URL.
      See Also:
    • _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.
      See Also:
  • Constructor Details

    • HttpsURL

      public HttpsURL(char[] escaped, String charset) throws URIException, 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 sequence
      charset - the charset to do escape encoding
      Throws:
      URIException - If checkValid() fails
      NullPointerException - if escaped is null
      See Also:
    • HttpsURL

      public HttpsURL(char[] escaped) throws URIException, NullPointerException
      Deprecated.
      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

      public HttpsURL(String original, 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 string
      charset - the charset to do escape encoding
      Throws:
      URIException - If checkValid() fails
      See Also:
    • HttpsURL

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

      public HttpsURL(String host, int port, String path) throws URIException
      Deprecated.
      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

      public HttpsURL(String host, int port, String path, String query) throws URIException
      Deprecated.
      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

      public HttpsURL(String user, String password, String host) throws URIException
      Deprecated.
      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

      public HttpsURL(String user, String password, String host, int port) throws URIException
      Deprecated.
      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

      public HttpsURL(String user, String password, String host, int port, String path) throws URIException
      Deprecated.
      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

      public HttpsURL(String user, String password, String host, int port, String path, String query) throws URIException
      Deprecated.
      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

      public HttpsURL(String host, String path, String query, String fragment) throws URIException
      Deprecated.
      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

      public HttpsURL(String userinfo, String host, String path, String query, String fragment) throws URIException
      Deprecated.
      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

      public HttpsURL(String userinfo, String host, int port, String path) throws URIException
      Deprecated.
      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

      public HttpsURL(String userinfo, String host, int port, String path, String query) throws URIException
      Deprecated.
      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

      public HttpsURL(String userinfo, String host, int port, String path, String query, String fragment) throws URIException
      Deprecated.
      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

      public HttpsURL(String user, String password, String host, int port, String path, String query, String fragment) throws URIException
      Deprecated.
      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

      public HttpsURL(HttpsURL base, String relative) throws URIException
      Deprecated.
      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
      Deprecated.
      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

    • getRawScheme

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

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

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