Class RemoteIncomingServerSession
- java.lang.Object
-
- org.jivesoftware.openfire.session.RemoteSession
-
- org.jivesoftware.openfire.session.RemoteIncomingServerSession
-
- All Implemented Interfaces:
ChannelHandler<org.xmpp.packet.Packet>,RoutableChannelHandler,IncomingServerSession,ServerSession,Session
public class RemoteIncomingServerSession extends RemoteSession implements IncomingServerSession
Surrogate for incoming server sessions hosted in some remote cluster node.- Author:
- Gaston Dombiak
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.jivesoftware.openfire.session.ServerSession
ServerSession.AuthenticationMethod
-
Nested classes/interfaces inherited from interface org.jivesoftware.openfire.session.Session
Session.Status
-
-
Field Summary
-
Fields inherited from class org.jivesoftware.openfire.session.RemoteSession
address, nodeID, streamID
-
Fields inherited from interface org.jivesoftware.openfire.session.Session
Log, MAJOR_VERSION, MINOR_VERSION
-
-
Constructor Summary
Constructors Constructor Description RemoteIncomingServerSession(byte[] nodeID, StreamID streamID)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.xmpp.packet.JIDgetAddress()Obtain the address of the user.ServerSession.AuthenticationMethodgetAuthenticationMethod()Obtain method that was used to authenticate this session.StringgetLocalDomain()Returns the domain or subdomain of the local server used by the remote server when validating the session.Collection<String>getValidatedDomains()Returns a collection with all the domains, subdomains and virtual hosts that where validated.-
Methods inherited from class org.jivesoftware.openfire.session.RemoteSession
close, deliverRawText, doClusterTask, doSynchronousClusterTask, getCipherSuiteName, getCreationDate, getHostAddress, getHostName, getLanguage, getLastActiveDate, getNumClientPackets, getNumServerPackets, getPeerCertificates, getServerName, getSoftwareVersion, getStatus, getStreamID, getTLSProtocolName, isClosed, isEncrypted, process, validate
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.jivesoftware.openfire.session.ServerSession
isUsingSaslExternal, isUsingServerDialback
-
Methods inherited from interface org.jivesoftware.openfire.session.Session
close, deliverRawText, getCipherSuiteName, getCreationDate, getHostAddress, getHostName, getLanguage, getLastActiveDate, getNumClientPackets, getNumServerPackets, getPeerCertificates, getServerName, getSoftwareVersion, getStatus, getStreamID, getTLSProtocolName, isAuthenticated, isClosed, isEncrypted, process, validate
-
-
-
-
Constructor Detail
-
RemoteIncomingServerSession
public RemoteIncomingServerSession(byte[] nodeID, StreamID streamID)
-
-
Method Detail
-
getAuthenticationMethod
public ServerSession.AuthenticationMethod getAuthenticationMethod()
Description copied from interface:ServerSessionObtain method that was used to authenticate this session. Null when the session is not authenticated.- Specified by:
getAuthenticationMethodin interfaceServerSession- Returns:
- the method used for authentication (possibly null).
-
getAddress
@Nonnull public org.xmpp.packet.JID getAddress()
Description copied from interface:SessionObtain the address of the user. The address is used by services like the core server packet router to determine if a packet should be sent to the handler. Handlers that are working on behalf of the server should use the generic server hostname address (e.g. server.com).- Specified by:
getAddressin interfaceRoutableChannelHandler- Specified by:
getAddressin interfaceSession- Overrides:
getAddressin classRemoteSession- Returns:
- the address of the packet handler.
-
getValidatedDomains
public Collection<String> getValidatedDomains()
Description copied from interface:IncomingServerSessionReturns a collection with all the domains, subdomains and virtual hosts that where validated. The remote server is allowed to send packets from any of these domains, subdomains and virtual hosts.- Specified by:
getValidatedDomainsin interfaceIncomingServerSession- Returns:
- domains, subdomains and virtual hosts that where validated.
-
getLocalDomain
public String getLocalDomain()
Description copied from interface:IncomingServerSessionReturns the domain or subdomain of the local server used by the remote server when validating the session. This information is only used to prevent many connections from the same remote server to the same domain or subdomain of the local server.- Specified by:
getLocalDomainin interfaceIncomingServerSession- Returns:
- the domain or subdomain of the local server used by the remote server when validating the session.
-
-