|
Secure iNet Factory | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jscape.inet.util.ConnectionParameters
public class ConnectionParameters
SSH connection parameters container.
Field Summary | |
---|---|
static long |
INFINITE_TIMEOUT
Infinite timeout value. |
Constructor Summary | |
---|---|
ConnectionParameters(ConnectionParameters that)
Copy constructor. |
|
ConnectionParameters(java.lang.String host,
int port)
Creates a new parameters instance. |
|
ConnectionParameters(java.lang.String host,
int port,
int sendBuffer,
int receiveBuffer)
Creates a new parameters instance. |
|
ConnectionParameters(java.lang.String host,
int port,
long timeout)
Creates a new parameters instance. |
|
ConnectionParameters(java.lang.String host,
int port,
long timeout,
int sendBuffer,
int receiveBuffer)
Creates a new parameters instance. |
|
ConnectionParameters(java.lang.String host,
int port,
long connectionTimeout,
long soTimeout,
int sendBuffer,
int receiveBuffer,
java.lang.Integer trafficClass,
java.lang.Boolean tcpNoDelay,
java.lang.String proxyHost,
int proxyPort,
java.lang.String proxyUserId,
java.lang.String proxyPassword,
java.lang.String proxyType)
|
|
ConnectionParameters(java.lang.String host,
int port,
long connectionTimeout,
long soTimeout,
int sendBuffer,
int receiveBuffer,
java.lang.Integer trafficClass,
java.lang.Boolean tcpNoDelay,
java.lang.String proxyHost,
int proxyPort,
java.lang.String proxyUserId,
java.lang.String proxyPassword,
java.lang.String proxyType,
long minIncomingWindowSize,
long maxIncomingWindowSize)
|
|
ConnectionParameters(java.lang.String host,
int port,
long connectionTimeout,
long soTimeout,
int sendBuffer,
int receiveBuffer,
java.lang.String proxyHost,
int proxyPort,
java.lang.String proxyUserId,
java.lang.String proxyPassword,
java.lang.String proxyType)
|
|
ConnectionParameters(java.lang.String host,
int port,
long timeout,
java.lang.String proxyHost,
int proxyPort,
java.lang.String proxyUserId,
java.lang.String proxyPassword,
java.lang.String proxyType)
|
Method Summary | |
---|---|
java.net.Socket |
createSocket()
Creates a new connected socket. |
long |
getConnectionTimeout()
Obtains connection timeout value. |
java.lang.String |
getHost()
Obtains target SSH host name. |
long |
getMaxIncomingWindowSize()
Get maximum incoming window size. |
long |
getMinIncomingWindowSize()
Get minimum incoming window size. |
int |
getPort()
Obtains target SSH port. |
java.lang.String |
getProxyHost()
Gets proxy hostname. |
java.lang.String |
getProxyPassword()
Gets the proxy authentication password. |
int |
getProxyPort()
Gets the proxy port. |
java.lang.String |
getProxyType()
Gets the proxy type: SOCKS5, HTTP. |
java.lang.String |
getProxyUserId()
Gets the user authentication proxy. |
int |
getReceiveBuffer()
Gets the receive buffer size. |
int |
getSendBuffer()
Gets the send buffer size. |
long |
getSoTimeout()
Returns reading timeout in milliseconds. |
java.lang.Boolean |
getTcpNoDelay()
Get TCP no delay. |
java.lang.Integer |
getTrafficClass()
Get socket traffic class. |
void |
setConnectionTimeout(long value)
Sets connection timeout. |
void |
setHost(java.lang.String value)
Sets host. |
void |
setMaxIncomingWindowSize(long size)
Set maximum incoming window size. |
void |
setMinIncomingWindowSize(long size)
Set minimum incoming window size. |
void |
setPort(int value)
Sets port. |
void |
setProxyHost(java.lang.String value)
Sets the proxy hostname. |
void |
setProxyPassword(java.lang.String value)
Sets the proxy authentication password. |
void |
setProxyPort(int value)
Sets the proxy port. |
void |
setProxyType(java.lang.String value)
Sets the proxy type |
void |
setProxyUserId(java.lang.String value)
Sets user authentication proxy. |
void |
setReceiveBuffer(int value)
Sets the receive buffer size. |
void |
setSendBuffer(int value)
Sets the send buffer size. |
void |
setSoTimeout(long value)
Sets reading timeout. |
void |
setTcpNoDelay(java.lang.Boolean value)
Set TCP no delay. |
void |
setTrafficClass(java.lang.Integer value)
Set traffic class. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final long INFINITE_TIMEOUT
Constructor Detail |
---|
public ConnectionParameters(java.lang.String host, int port, long connectionTimeout, long soTimeout, int sendBuffer, int receiveBuffer, java.lang.Integer trafficClass, java.lang.Boolean tcpNoDelay, java.lang.String proxyHost, int proxyPort, java.lang.String proxyUserId, java.lang.String proxyPassword, java.lang.String proxyType, long minIncomingWindowSize, long maxIncomingWindowSize)
public ConnectionParameters(java.lang.String host, int port, long connectionTimeout, long soTimeout, int sendBuffer, int receiveBuffer, java.lang.Integer trafficClass, java.lang.Boolean tcpNoDelay, java.lang.String proxyHost, int proxyPort, java.lang.String proxyUserId, java.lang.String proxyPassword, java.lang.String proxyType)
public ConnectionParameters(java.lang.String host, int port, long timeout, java.lang.String proxyHost, int proxyPort, java.lang.String proxyUserId, java.lang.String proxyPassword, java.lang.String proxyType)
public ConnectionParameters(ConnectionParameters that)
that
- instance to copypublic ConnectionParameters(java.lang.String host, int port, long connectionTimeout, long soTimeout, int sendBuffer, int receiveBuffer, java.lang.String proxyHost, int proxyPort, java.lang.String proxyUserId, java.lang.String proxyPassword, java.lang.String proxyType)
public ConnectionParameters(java.lang.String host, int port, long timeout, int sendBuffer, int receiveBuffer)
host
- the server hostport
- the server porttimeout
- the connection timeoutsendBuffer
- the send buffer size.receiveBuffer
- the receive buffer size.public ConnectionParameters(java.lang.String host, int port, long timeout)
host
- the server hostport
- the server porttimeout
- the connection timeoutpublic ConnectionParameters(java.lang.String host, int port)
host
- hostport
- portpublic ConnectionParameters(java.lang.String host, int port, int sendBuffer, int receiveBuffer)
host
- hostport
- portsendBuffer
- send buffer size.receiveBuffer
- receive buffer size.Method Detail |
---|
public void setMinIncomingWindowSize(long size)
size
- public long getMinIncomingWindowSize()
public void setMaxIncomingWindowSize(long size)
size
- public long getMaxIncomingWindowSize()
public java.lang.String getHost()
public void setHost(java.lang.String value)
value
- hostpublic int getPort()
public void setPort(int value)
value
- portpublic long getConnectionTimeout()
public void setConnectionTimeout(long value)
value
- connection timeoutpublic java.lang.Integer getTrafficClass()
public void setTrafficClass(java.lang.Integer value)
value
- public long getSoTimeout()
public void setSoTimeout(long value)
value
- reading timeout in millisecondspublic java.lang.Boolean getTcpNoDelay()
public void setTcpNoDelay(java.lang.Boolean value)
value
- public int getSendBuffer()
public void setSendBuffer(int value)
value
- the buffer size.public int getReceiveBuffer()
public void setReceiveBuffer(int value)
value
- the buffer size.public java.lang.String getProxyHost()
public void setProxyHost(java.lang.String value)
value
- The proxy hostnamepublic int getProxyPort()
public void setProxyPort(int value)
value
- The proxy port.public java.lang.String getProxyUserId()
public void setProxyUserId(java.lang.String value)
value
- User authentication proxy.public java.lang.String getProxyPassword()
public void setProxyPassword(java.lang.String value)
value
- Initializes the proxy authentication password.public java.lang.String getProxyType()
public void setProxyType(java.lang.String value)
value
- The proxy type.public java.net.Socket createSocket() throws java.io.IOException
java.io.IOException
- if an I/O error occuredpublic java.lang.String toString()
toString
in class java.lang.Object
|
Secure iNet Factory | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |