Class HttpURL
java.lang.Object
com.inductiveautomation.ignition.common.gateway.HttpURL
- All Implemented Interfaces:
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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
int
getPath()
int
getPort()
int
hashCode()
boolean
isSsl()
void
setAddress
(String address) void
setHttpPort
(int httpPort) void
setHttpsPort
(int httpsPort) void
void
setProtocol
(String protocol) toString()
toString
(boolean ssl) Returns the "full" format for this address, which omits the scheme, and includes both ports.
-
Field Details
-
protocol
-
address
-
httpPort
protected int httpPort -
httpsPort
protected int httpsPort -
path
-
-
Constructor Details
-
HttpURL
-
HttpURL
-
HttpURL
-
-
Method Details
-
getAddress
-
setAddress
-
getPath
-
setPath
-
toString
-
toStringHTTP
-
toStringHTTPS
-
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
-
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
- Returns:
- the protocol used, or "http" if not set.
-
setProtocol
-
isSsl
public boolean isSsl() -
hashCode
public int hashCode() -
equals
-