|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IConnection
A Connection with a remote host.
| Method Summary | |
|---|---|
void |
addConnectionListener(IConnectionListener connectionListener)
Append connection listener |
void |
connect()
Connect with remote host |
void |
disconnect()
Disconnect wit remote host |
java.lang.String |
getKey()
Return identifier of connection. |
java.net.InetAddress |
getRemoteAddress()
Return remote host address |
int |
getRemotePort()
Return remote socket port |
boolean |
isConnected()
Return true if is connection is valid |
boolean |
isNetworkInitiated()
Return true if connection is incomming |
void |
release()
Clear all attachec resources (close socket) |
void |
remConnectionListener(IConnectionListener connectionListener)
Remove connection listener |
void |
sendMessage(IMessage message)
Send message to remote host |
| Methods inherited from interface org.jdiameter.api.Wrapper |
|---|
isWrapperFor, unwrap |
| Method Detail |
|---|
java.lang.String getKey()
void connect()
throws TransportException
TransportException
void disconnect()
throws java.lang.InternalError
java.lang.InternalError
void sendMessage(IMessage message)
throws TransportException,
org.jdiameter.api.OverloadException
message - diameter message
TransportException
org.jdiameter.api.OverloadException
void release()
throws java.io.IOException
java.io.IOExceptionboolean isNetworkInitiated()
boolean isConnected()
java.net.InetAddress getRemoteAddress()
int getRemotePort()
void addConnectionListener(IConnectionListener connectionListener)
connectionListener - listener instancevoid remConnectionListener(IConnectionListener connectionListener)
connectionListener - listener instance
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||