Class RemoteIncomingServerSession

    • Constructor Detail

      • RemoteIncomingServerSession

        public RemoteIncomingServerSession​(byte[] nodeID,
                                           StreamID streamID)
    • Method Detail

      • getAddress

        public org.xmpp.packet.JID getAddress()
        Description copied from interface: Session
        Obtain 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:
        getAddress in interface RoutableChannelHandler
        Specified by:
        getAddress in interface Session
        Overrides:
        getAddress in class RemoteSession
        Returns:
        the address of the packet handler.
      • getValidatedDomains

        public Collection<String> getValidatedDomains()
        Description copied from interface: IncomingServerSession
        Returns 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:
        getValidatedDomains in interface IncomingServerSession
        Returns:
        domains, subdomains and virtual hosts that where validated.
      • getLocalDomain

        public String getLocalDomain()
        Description copied from interface: IncomingServerSession
        Returns 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:
        getLocalDomain in interface IncomingServerSession
        Returns:
        the domain or subdomain of the local server used by the remote server when validating the session.