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 boolean
inboundAllowed
protected boolean
outboundAllowed
protected boolean
usingServerDialback
-
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 String
getAvailableStreamFeatures()
Returns a text with the available stream features.boolean
isUsingServerDialback()
Returns true if this outgoing session was established using server dialback.String
toString()
-
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:LocalSession
Returns a text with the available stream features. Each subclass may return different values depending whether the session has been authenticated or not.- Specified by:
getAvailableStreamFeatures
in classLocalSession
- Returns:
- a text with the available stream features or
null
to add nothing.
-
isUsingServerDialback
public boolean isUsingServerDialback()
Description copied from interface:ServerSession
Returns true if this outgoing session was established using server dialback.- Specified by:
isUsingServerDialback
in interfaceServerSession
- Returns:
- true if this outgoing session was established using server dialback.
-
toString
public String toString()
- Overrides:
toString
in classLocalSession
-
-