java.lang.Object
com.inductiveautomation.ignition.common.gateway.HttpURL
All Implemented Interfaces:
Serializable

public class HttpURL extends Object implements Serializable
Represents an Http URL, with the various segments split up. For example, the URL http://www.example.com:88/project has:
  • address = www.example.com
  • port = 88
  • path = project

Unlike a plain URL, holds two ports: one for HTTP and one for HTTPS

See Also:
  • Field Details

    • protocol

      protected String protocol
    • address

      protected String address
    • httpPort

      protected int httpPort
    • httpsPort

      protected int httpsPort
    • path

      protected String path
  • Constructor Details

    • HttpURL

      public HttpURL(String protocol, String address, int port, String path)
    • HttpURL

      public HttpURL(String address, int httpPort, int httpsPort)
    • HttpURL

      public HttpURL(String address, int httpPort, int httpsPort, String path)
  • Method Details

    • getAddress

      public String getAddress()
    • setAddress

      public void setAddress(String address)
    • getPath

      public String getPath()
    • setPath

      public void setPath(String path)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • toStringHTTP

      public String toStringHTTP()
    • toStringHTTPS

      public String toStringHTTPS()
    • toStringFull

      public String toStringFull()
      Returns the "full" format for this address, which omits the scheme, and includes both ports. For example: "192.168.1.8:80:443/main"
    • toString

      public String toString(boolean ssl)
    • getPort

      public int getPort()
    • getHttpPort

      public int getHttpPort()
    • setHttpPort

      public void setHttpPort(int httpPort)
    • getHttpsPort

      public int getHttpsPort()
    • setHttpsPort

      public void setHttpsPort(int httpsPort)
    • getProtocol

      public String getProtocol()
      Returns:
      the protocol used, or "http" if not set.
    • setProtocol

      public void setProtocol(String protocol)
    • isSsl

      public boolean isSsl()
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object