Class RespondingServerStanzaHandler


  • public class RespondingServerStanzaHandler
    extends StanzaHandler
    • Constructor Detail

      • RespondingServerStanzaHandler

        public RespondingServerStanzaHandler​(PacketRouter router,
                                             Connection connection,
                                             DomainPair domainPair)
        Creates a dedicated reader for a socket.
        Parameters:
        router - the router for sending packets that were read.
        connection - the connection being read.
        domainPair - the local and remote domains
    • Method Detail

      • isStartOfStream

        protected boolean isStartOfStream​(String xml)
        Description copied from class: StanzaHandler
        Checks if the provided XML data represents the beginning of a new XMPP stream.
        Overrides:
        isStartOfStream in class StanzaHandler
        Parameters:
        xml - The XML to verify
        Returns:
        'true' if the provided data represents the beginning of an XMPP stream.
      • isSessionAuthenticated

        public boolean isSessionAuthenticated()
      • setSessionAuthenticated

        public void setSessionAuthenticated​(boolean authenticated)
      • haveAttemptedAllAuthenticationMethods

        public boolean haveAttemptedAllAuthenticationMethods()
      • setAttemptedAllAuthenticationMethods

        public void setAttemptedAllAuthenticationMethods​(boolean haveAttemptedAllAuthenticationMethods)