|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jdiameter.client.impl.transport.tls.TLSClientConnection
public class TLSClientConnection
| Constructor Summary | |
|---|---|
TLSClientConnection(Configuration config,
Configuration localPeerSSLConfig,
IConcurrentFactory concurrentFactory,
java.net.Socket socket,
IMessageParser parser)
|
|
TLSClientConnection(Configuration config,
IConcurrentFactory concurrentFactory,
java.net.InetAddress remoteAddress,
int remotePort,
java.net.InetAddress localAddress,
int localPort,
IConnectionListener listener,
IMessageParser parser,
java.lang.String ref)
|
|
TLSClientConnection(Configuration config,
IConcurrentFactory concurrentFactory,
java.net.InetAddress remoteAddress,
int remotePort,
java.net.InetAddress localAddress,
int localPort,
IMessageParser parser,
java.lang.String ref)
|
|
| Method Summary | ||
|---|---|---|
void |
addConnectionListener(IConnectionListener listener)
Append connection listener |
|
void |
connect()
Connect with remote host |
|
void |
disconnect()
Disconnect wit remote host |
|
protected TLSTransportClient |
getClient()
|
|
long |
getCreatedTime()
Return created time |
|
java.lang.String |
getKey()
Return identifier of connection. |
|
java.net.InetAddress |
getRemoteAddress()
Return remote host address |
|
int |
getRemotePort()
Return remote socket port |
|
Configuration |
getSSLConfig()
|
|
javax.net.ssl.SSLSocketFactory |
getSSLFactory()
|
|
boolean |
isConnected()
Return true if is connection is valid |
|
boolean |
isNetworkInitiated()
Return true if connection is incomming |
|
boolean |
isWrapperFor(java.lang.Class<?> aClass)
|
|
protected void |
onAvpDataException(AvpDataException e)
|
|
protected void |
onConnected()
|
|
protected void |
onDisconnect()
|
|
protected void |
onEvent(org.jdiameter.client.impl.transport.tls.TLSClientConnection.Event event)
|
|
protected void |
onMessageReceived(IMessage message)
|
|
protected boolean |
processBufferedMessages(org.jdiameter.client.impl.transport.tls.TLSClientConnection.Event event)
|
|
void |
release()
Clear all attachec resources (close socket) |
|
void |
remAllConnectionListener()
Remove all connection listeners |
|
void |
remConnectionListener(IConnectionListener listener)
Remove connection listener |
|
void |
sendMessage(IMessage message)
Send message to remote host |
|
|
unwrap(java.lang.Class<T> aClass)
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TLSClientConnection(Configuration config,
IConcurrentFactory concurrentFactory,
java.net.InetAddress remoteAddress,
int remotePort,
java.net.InetAddress localAddress,
int localPort,
IMessageParser parser,
java.lang.String ref)
public TLSClientConnection(Configuration config,
IConcurrentFactory concurrentFactory,
java.net.InetAddress remoteAddress,
int remotePort,
java.net.InetAddress localAddress,
int localPort,
IConnectionListener listener,
IMessageParser parser,
java.lang.String ref)
public TLSClientConnection(Configuration config,
Configuration localPeerSSLConfig,
IConcurrentFactory concurrentFactory,
java.net.Socket socket,
IMessageParser parser)
throws java.lang.Exception
java.lang.Exception| Method Detail |
|---|
protected TLSTransportClient getClient()
public Configuration getSSLConfig()
public javax.net.ssl.SSLSocketFactory getSSLFactory()
public long getCreatedTime()
IConnection
getCreatedTime in interface IConnectionpublic java.net.InetAddress getRemoteAddress()
IConnection
getRemoteAddress in interface IConnectionpublic int getRemotePort()
IConnection
getRemotePort in interface IConnectionpublic void addConnectionListener(IConnectionListener listener)
IConnection
addConnectionListener in interface IConnectionlistener - listener instancepublic void remAllConnectionListener()
IConnection
remAllConnectionListener in interface IConnectionpublic void remConnectionListener(IConnectionListener listener)
IConnection
remConnectionListener in interface IConnectionlistener - listener instance
public void release()
throws java.io.IOException
IConnection
release in interface IConnectionjava.io.IOException
public boolean isWrapperFor(java.lang.Class<?> aClass)
throws InternalException
isWrapperFor in interface WrapperInternalException
public <T> T unwrap(java.lang.Class<T> aClass)
throws InternalException
unwrap in interface WrapperInternalExceptionpublic boolean isConnected()
IConnection
isConnected in interface IConnectionpublic boolean isNetworkInitiated()
IConnection
isNetworkInitiated in interface IConnectionpublic java.lang.String getKey()
IConnection
getKey in interface IConnection
public void connect()
throws TransportException
IConnection
connect in interface IConnectionTransportException
public void disconnect()
throws java.lang.InternalError
IConnection
disconnect in interface IConnectionjava.lang.InternalError
public void sendMessage(IMessage message)
throws TransportException,
OverloadException
IConnection
sendMessage in interface IConnectionmessage - diameter message
TransportException
OverloadException
protected void onDisconnect()
throws AvpDataException
AvpDataException
protected void onMessageReceived(IMessage message)
throws AvpDataException
AvpDataExceptionprotected void onAvpDataException(AvpDataException e)
protected void onConnected()
protected void onEvent(org.jdiameter.client.impl.transport.tls.TLSClientConnection.Event event)
throws AvpDataException
AvpDataException
protected boolean processBufferedMessages(org.jdiameter.client.impl.transport.tls.TLSClientConnection.Event event)
throws AvpDataException
AvpDataException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||