|
Wildfire 3.1.1 Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jivesoftware.wildfire.Session
org.jivesoftware.wildfire.multiplex.ConnectionMultiplexerSession
public class ConnectionMultiplexerSession
Represents a session between the server and a connection manager.
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.
Field Summary |
---|
Fields inherited from class org.jivesoftware.wildfire.Session |
---|
authToken, CHARSET, conn, MAJOR_VERSION, MINOR_VERSION, sessionManager, status, STATUS_AUTHENTICATED, STATUS_CLOSED, STATUS_CONNECTED, STATUS_STREAMING |
Constructor Summary | |
---|---|
ConnectionMultiplexerSession(String serverName,
Connection connection,
StreamID streamID)
|
Method Summary | |
---|---|
boolean |
authenticate(String digest)
Authenticates the connection manager. |
static Session |
createSession(String serverName,
org.dom4j.io.XMPPPacketReader reader,
SocketConnection connection)
|
String |
getAvailableStreamFeatures()
Returns a text with the available stream features. |
static Connection.CompressionPolicy |
getCompressionPolicy()
Returns whether compression is optional or is disabled for clients. |
static long |
getIdleTimeout()
Returns the number of milliseconds a connection has to be idle to be closed. |
static Connection.TLSPolicy |
getTLSPolicy()
Returns whether TLS is mandatory, optional or is disabled for clients. |
void |
process(Packet packet)
Process an XMPP packet. |
static void |
setCompressionPolicy(Connection.CompressionPolicy policy)
Sets whether compression is optional or is disabled for clients. |
static void |
setIdleTimeout(long timeout)
Sets the number of milliseconds a connection has to be idle to be closed. |
static void |
setTLSPolicy(Connection.TLSPolicy policy)
Sets whether TLS is mandatory, optional or is disabled for clients. |
Methods inherited from class org.jivesoftware.wildfire.Session |
---|
decodeVersion, getAddress, getConnection, getCreationDate, getLastActiveDate, getNumClientPackets, getNumServerPackets, getServerName, getSessionData, getStatus, getStreamID, incrementClientPacketCount, incrementServerPacketCount, removeSessionData, setAddress, setSessionData, setStatus, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ConnectionMultiplexerSession(String serverName, Connection connection, StreamID streamID)
Method Detail |
---|
public static Session createSession(String serverName, org.dom4j.io.XMPPPacketReader reader, SocketConnection connection) throws org.xmlpull.v1.XmlPullParserException, IOException, UnauthorizedException
org.xmlpull.v1.XmlPullParserException
IOException
UnauthorizedException
public String getAvailableStreamFeatures()
Session
getAvailableStreamFeatures
in class Session
public void process(Packet packet)
ChannelHandler
packet
- a packet to process.public boolean authenticate(String digest)
digest
- the digest provided by the connection manager with the handshake stanza.
public static Connection.TLSPolicy getTLSPolicy()
public static void setTLSPolicy(Connection.TLSPolicy policy)
policy
- whether TLS is mandatory, optional or is disabled.public static Connection.CompressionPolicy getCompressionPolicy()
public static void setCompressionPolicy(Connection.CompressionPolicy policy)
policy
- whether compression is optional or is disabled.public static long getIdleTimeout()
public static void setIdleTimeout(long timeout)
timeout
- the number of milliseconds a connection has to be idle to be closed.
|
Wildfire 3.1.1 Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |