|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jdiameter.server.impl.io.sctp.SCTPServerConnection
public class SCTPServerConnection
| Constructor Summary | |
|---|---|
|
SCTPServerConnection(Configuration config,
java.net.InetAddress localAddress,
int localPort,
IMessageParser parser,
java.lang.String ref,
NetworkGuard guard)
|
|
SCTPServerConnection(Configuration config,
java.net.InetAddress remoteAddress,
int remotePort,
java.net.InetAddress localAddress,
int localPort,
IMessageParser parser,
java.lang.String ref,
NetworkGuard guard,
org.mobicents.protocols.api.Server globalServer,
org.mobicents.protocols.api.Association association,
org.mobicents.protocols.api.Management management)
|
protected |
SCTPServerConnection(IMessageParser parser,
NetworkGuard guard)
|
| Method Summary | ||
|---|---|---|
void |
addConnectionListener(IConnectionListener listener)
Append connection listener |
|
void |
connect()
Connect with remote host |
|
void |
destroy()
|
|
void |
disconnect()
Disconnect wit remote host |
|
long |
getCreatedTime()
Return created time |
|
java.lang.String |
getKey()
Return identifier of connection. |
|
org.mobicents.protocols.api.Management |
getManagement()
|
|
NetworkGuard |
getParentGuard()
|
|
java.net.InetAddress |
getRemoteAddress()
Return remote host address |
|
int |
getRemotePort()
Return remote socket port |
|
protected SCTPTransportServer |
getServer()
|
|
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 |
logDetails()
|
|
protected void |
onAvpDataException(AvpDataException e)
|
|
protected void |
onConnected()
|
|
protected void |
onDisconnect()
|
|
protected void |
onEvent(org.jdiameter.server.impl.io.sctp.SCTPServerConnection.Event event)
|
|
protected void |
onMessageReceived(java.nio.ByteBuffer message)
|
|
void |
onNewRemoteConnection(org.mobicents.protocols.api.Server server,
org.mobicents.protocols.api.Association association)
|
|
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 |
|---|
protected SCTPServerConnection(IMessageParser parser,
NetworkGuard guard)
public SCTPServerConnection(Configuration config,
java.net.InetAddress localAddress,
int localPort,
IMessageParser parser,
java.lang.String ref,
NetworkGuard guard)
throws java.lang.Exception
java.lang.Exception
public SCTPServerConnection(Configuration config,
java.net.InetAddress remoteAddress,
int remotePort,
java.net.InetAddress localAddress,
int localPort,
IMessageParser parser,
java.lang.String ref,
NetworkGuard guard,
org.mobicents.protocols.api.Server globalServer,
org.mobicents.protocols.api.Association association,
org.mobicents.protocols.api.Management management)
throws java.lang.Exception
java.lang.Exception| Method Detail |
|---|
public long getCreatedTime()
IConnection
getCreatedTime 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.InternalErrorpublic org.mobicents.protocols.api.Management getManagement()
public void destroy()
throws java.lang.InternalError
java.lang.InternalError
public void release()
throws java.io.IOException
IConnection
release in interface IConnectionjava.io.IOException
public void onNewRemoteConnection(org.mobicents.protocols.api.Server server,
org.mobicents.protocols.api.Association association)
public NetworkGuard getParentGuard()
public void sendMessage(IMessage message)
throws TransportException,
OverloadException
IConnection
sendMessage in interface IConnectionmessage - diameter message
TransportException
OverloadExceptionprotected SCTPTransportServer getServer()
public boolean isNetworkInitiated()
IConnection
isNetworkInitiated in interface IConnectionpublic boolean isConnected()
IConnection
isConnected 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 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 java.lang.String getKey()
IConnection
getKey in interface IConnection
protected void onDisconnect()
throws AvpDataException
AvpDataException
protected void onMessageReceived(java.nio.ByteBuffer message)
throws AvpDataException
AvpDataExceptionprotected void onAvpDataException(AvpDataException e)
protected void onConnected()
protected void logDetails()
throws AvpDataException
AvpDataException
protected void onEvent(org.jdiameter.server.impl.io.sctp.SCTPServerConnection.Event event)
throws AvpDataException
AvpDataException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||