public class LocalConnectionMultiplexerSession extends LocalSession implements ConnectionMultiplexerSession
Each Connection Manager has its own domain. Each connection from the same connection manager
uses a different resource. Unlike any other session, connection manager sessions are not
present in the routing table. This means that connection managers are not reachable entities.
In other words, entities cannot send packets to connection managers but clients being hosted
by them. The main reason behind this design decision is that connection managers are private
components of the server so they can only be contacted by the server. Connection Manager
sessions are present in SessionManager but not in RoutingTable. Use
SessionManager.getConnectionMultiplexerSessions(String) to get all sessions or
ConnectionMultiplexerManager.getMultiplexerSession(String)
to get a random session to a given connection manager.
CHARSET, conn, sessionManager, status, streamManagerMAJOR_VERSION, MINOR_VERSION, STATUS_AUTHENTICATED, STATUS_CLOSED, STATUS_CONNECTED| Constructor and Description |
|---|
LocalConnectionMultiplexerSession(String serverName,
Connection connection,
StreamID streamID) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
authenticate(String digest)
Authenticates the connection manager.
|
static LocalConnectionMultiplexerSession |
createSession(String serverName,
org.xmlpull.v1.XmlPullParser xpp,
Connection connection) |
String |
getAvailableStreamFeatures()
Returns a text with the available stream features.
|
close, decodeVersion, deliverRawText, getAddress, getCipherSuiteName, getConnection, getCreationDate, getHostAddress, getHostName, getLanguage, getLastActiveDate, getNumClientPackets, getNumServerPackets, getPeerCertificates, getServerName, getSessionData, getStatus, getStreamID, getStreamManager, incrementClientPacketCount, incrementServerPacketCount, isClosed, isDetached, isSecure, isUsingSelfSignedCertificate, process, reattach, removeSessionData, setAddress, setDetached, setSessionData, setStatus, toString, validateclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitclose, deliverRawText, getAddress, getCipherSuiteName, getCreationDate, getHostAddress, getHostName, getLanguage, getLastActiveDate, getNumClientPackets, getNumServerPackets, getPeerCertificates, getServerName, getStatus, getStreamID, isClosed, isSecure, process, validatepublic LocalConnectionMultiplexerSession(String serverName, Connection connection, StreamID streamID)
public static LocalConnectionMultiplexerSession createSession(String serverName, org.xmlpull.v1.XmlPullParser xpp, Connection connection) throws org.xmlpull.v1.XmlPullParserException
org.xmlpull.v1.XmlPullParserExceptionpublic String getAvailableStreamFeatures()
LocalSessiongetAvailableStreamFeatures in class LocalSessionpublic boolean authenticate(String digest)
digest - the digest provided by the connection manager with the handshake stanza.Copyright © 2003–2019 Ignite Realtime. All rights reserved.