Class LocalServerSession
- java.lang.Object
-
- org.jivesoftware.openfire.session.LocalSession
-
- org.jivesoftware.openfire.session.LocalServerSession
-
- All Implemented Interfaces:
ChannelHandler<org.xmpp.packet.Packet>,RoutableChannelHandler,ServerSession,Session
- Direct Known Subclasses:
LocalIncomingServerSession,LocalOutgoingServerSession
public class LocalServerSession extends LocalSession implements ServerSession
- Author:
- dwd
-
-
Field Summary
Fields Modifier and Type Field Description protected booleaninboundAllowedprotected booleanoutboundAllowedprotected booleanusingServerDialback-
Fields inherited from class org.jivesoftware.openfire.session.LocalSession
CHARSET, conn, sessionManager, status, streamManager
-
Fields inherited from interface org.jivesoftware.openfire.session.Session
MAJOR_VERSION, MINOR_VERSION, STATUS_AUTHENTICATED, STATUS_CLOSED, STATUS_CONNECTED
-
-
Constructor Summary
Constructors Constructor Description LocalServerSession(String serverName, Connection connection, StreamID streamID)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAvailableStreamFeatures()Returns a text with the available stream features.booleanisUsingServerDialback()Returns true if this outgoing session was established using server dialback.StringtoString()-
Methods inherited from class org.jivesoftware.openfire.session.LocalSession
close, decodeVersion, deliverRawText, getAddress, getCipherSuiteName, getConnection, getCreationDate, getHostAddress, getHostName, getLanguage, getLastActiveDate, getNumClientPackets, getNumServerPackets, getPeerCertificates, getServerName, getSessionData, getSoftwareVersion, getStatus, getStreamID, getStreamManager, incrementClientPacketCount, incrementServerPacketCount, isClosed, isDetached, isSecure, isUsingSelfSignedCertificate, process, reattach, removeSessionData, setAddress, setDetached, setSessionData, setSoftwareVersionData, setStatus, validate
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.jivesoftware.openfire.session.Session
close, deliverRawText, getAddress, getCipherSuiteName, getCreationDate, getHostAddress, getHostName, getLanguage, getLastActiveDate, getNumClientPackets, getNumServerPackets, getPeerCertificates, getServerName, getSoftwareVersion, getStatus, getStreamID, isClosed, isSecure, process, validate
-
-
-
-
Constructor Detail
-
LocalServerSession
public LocalServerSession(String serverName, Connection connection, StreamID streamID)
-
-
Method Detail
-
getAvailableStreamFeatures
public String getAvailableStreamFeatures()
Description copied from class:LocalSessionReturns a text with the available stream features. Each subclass may return different values depending whether the session has been authenticated or not.- Specified by:
getAvailableStreamFeaturesin classLocalSession- Returns:
- a text with the available stream features or
nullto add nothing.
-
isUsingServerDialback
public boolean isUsingServerDialback()
Description copied from interface:ServerSessionReturns true if this outgoing session was established using server dialback.- Specified by:
isUsingServerDialbackin interfaceServerSession- Returns:
- true if this outgoing session was established using server dialback.
-
toString
public String toString()
- Overrides:
toStringin classLocalSession
-
-