public class ConnectionInfo
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
java.lang.String |
connectionType
The connection type.
|
java.lang.String |
localAddress
The local ip address
|
java.lang.String |
methodType
|
java.lang.String |
remoteAddress
The remote ip address
|
java.lang.String |
remoteMessage
If additional POST message
|
int |
remotePort
The remote port to connect to
|
boolean |
tcpNoDelay
True to use arbitrary packet size and disable Nagle's algorithm, true by default
|
int |
timeout
The time allowed for the connection call to complete
|
Constructor and Description |
---|
ConnectionInfo()
Create a new instance of ConnectionInfo.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isHttpConnection()
Return true if the connection settings are for an http connection.
|
boolean |
isUrlConnection()
Return true if the connection settings are for an url connection.
|
void |
setHostAddresses(java.net.URL remoteHost)
Set the local and remote host address values using the input parameter.
|
public java.lang.String connectionType
public java.lang.String methodType
public int remotePort
public java.lang.String remoteAddress
public java.lang.String remoteMessage
public java.lang.String localAddress
public int timeout
public boolean tcpNoDelay
public boolean isHttpConnection()
public boolean isUrlConnection()
public void setHostAddresses(java.net.URL remoteHost) throws java.lang.Exception
remoteHost
- the remote host address as a URL object.java.lang.Exception
- any error.