public class SessionConnection extends Object
| Modifier and Type | Field and Description |
|---|---|
static SessionConnectionListener |
NULL_SESSION_CONNECTION_LISTENER |
| Constructor and Description |
|---|
SessionConnection() |
| Modifier and Type | Method and Description |
|---|---|
void |
addAddress(InetSocketAddress address)
Adds address.
|
List<InetSocketAddress> |
getAddresses()
Returns list of addresses.
|
SessionConnectionListener |
getSessionConnectionListener()
Returns session connection listener.
|
void |
logon(Session session)
Logons the session.
|
void |
setSessionConnectionListener(SessionConnectionListener listener)
Sets session connection listener.
|
public static final SessionConnectionListener NULL_SESSION_CONNECTION_LISTENER
public List<InetSocketAddress> getAddresses()
public void addAddress(InetSocketAddress address)
address - connection addresspublic SessionConnectionListener getSessionConnectionListener()
public void setSessionConnectionListener(SessionConnectionListener listener)
listener - session connection listener or NULL_SESSION_CONNECTION_LISTENER value to reset
listener to defaultpublic void logon(Session session) throws Exception
session - sessionIOException - if logon message reading failedExceptionCopyright © 2005–2025 Onix Solutions. All rights reserved.