public class SslClientFactory extends java.lang.Object implements IClientSecurityFactory
| Constructor and Description |
|---|
SslClientFactory()
Constructs the factory.
|
SslClientFactory(javax.net.ssl.SSLSocketFactory socketFactory)
Constructs the factory.
|
| Modifier and Type | Method and Description |
|---|---|
java.net.Socket |
createClientSocket(java.net.InetSocketAddress socketAddress)
Creates SSLClientSocket
|
int |
getConnectionTimeout()
Returns open connection timeout.
|
int |
getReceiveBufferSize()
Returns the size of the receiving buffer in bytes.
|
int |
getReceiveTimeout()
Returns timeout setup for receiving a message.
|
int |
getResponseReceiverPort()
Gets the port which shall be used for receiving response messages in output channels.
|
boolean |
getReuseAddress()
Gets the flag indicating whether the socket can be bound to the address which is already in use.
|
int |
getSendBufferSize()
Returns the size of the sending buffer in bytes.
|
int |
getSendTimeout()
Returns timeout setup for sending a message.
|
void |
setConnectionTimeout(int connectionTimeout)
Sets open connection timeout in milliseconds.
|
void |
setReceiveBufferSize(int size)
Sets the size of receiving buffer in bytes.
|
void |
setReceiveTimeout(int receiveTimeout)
Sets timeout for receiving a message.
|
void |
setResponseReceiverPort(int port)
Sets or gets the port which shall be used for receiving response messages in output channels.
|
void |
setReuseAddress(boolean allowReuseAddress)
Sets the flag indicating whether the socket can be bound to the address which is already in use.
|
void |
setSendBufferSize(int size)
Sets the size of sending buffer in bytes.
|
void |
setSendTimeout(int sendTimeout)
Sets timeout for sending a message.
|
public SslClientFactory()
public SslClientFactory(javax.net.ssl.SSLSocketFactory socketFactory)
socketFactory - public java.net.Socket createClientSocket(java.net.InetSocketAddress socketAddress)
throws java.lang.Exception
createClientSocket in interface IClientSecurityFactorysocketAddress - addressjava.lang.Exceptionpublic void setConnectionTimeout(int connectionTimeout)
IClientSecurityFactorysetConnectionTimeout in interface IClientSecurityFactoryconnectionTimeout - timeout in milliseconds. 0 means infinite time (use 30000 by default)public int getConnectionTimeout()
IClientSecurityFactorygetConnectionTimeout in interface IClientSecurityFactorypublic void setSendTimeout(int sendTimeout)
IClientSecurityFactorysetSendTimeout in interface IClientSecurityFactorypublic int getSendTimeout()
IClientSecurityFactorygetSendTimeout in interface IClientSecurityFactorypublic void setReceiveTimeout(int receiveTimeout)
IClientSecurityFactorysetReceiveTimeout in interface IClientSecurityFactorypublic int getReceiveTimeout()
IClientSecurityFactorygetReceiveTimeout in interface IClientSecurityFactorypublic void setSendBufferSize(int size)
IClientSecurityFactorysetSendBufferSize in interface IClientSecurityFactorysize - size of the buffer in bytes. (use 8192 by default)public int getSendBufferSize()
IClientSecurityFactorygetSendBufferSize in interface IClientSecurityFactorypublic void setReceiveBufferSize(int size)
IClientSecurityFactorysetReceiveBufferSize in interface IClientSecurityFactorysize - size of the buffer in bytes. (use 8192 by default)public int getReceiveBufferSize()
IClientSecurityFactorygetReceiveBufferSize in interface IClientSecurityFactorypublic void setReuseAddress(boolean allowReuseAddress)
IClientSecurityFactorysetReuseAddress in interface IClientSecurityFactoryallowReuseAddress - true if the socket can be bound to the address which is already in use.public boolean getReuseAddress()
IClientSecurityFactorygetReuseAddress in interface IClientSecurityFactorypublic void setResponseReceiverPort(int port)
IClientSecurityFactorysetResponseReceiverPort in interface IClientSecurityFactoryport - port which shall be used for receiving response messages in the output channel.public int getResponseReceiverPort()
IClientSecurityFactorygetResponseReceiverPort in interface IClientSecurityFactory