Package org.jivesoftware.openfire.net
Class RespondingServerStanzaHandler
- java.lang.Object
-
- org.jivesoftware.openfire.net.StanzaHandler
-
- org.jivesoftware.openfire.net.RespondingServerStanzaHandler
-
public class RespondingServerStanzaHandler extends StanzaHandler
-
-
Field Summary
-
Fields inherited from class org.jivesoftware.openfire.net.StanzaHandler
CHARSET, connection, PROPERTY_OVERWRITE_EMPTY_TO, router, saslStatus, session, sessionCreated, startedSASL, startedTLS, waitingCompressionACK
-
-
Constructor Summary
Constructors Constructor Description RespondingServerStanzaHandler(PacketRouter router, Connection connection, DomainPair domainPair)Creates a dedicated reader for a socket.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LocalSessiongetSession()booleanhaveAttemptedAllAuthenticationMethods()protected voidinitiateSession(String stanza, XMPPPacketReader reader)booleanisSessionAuthenticated()protected booleanisStartOfStream(String xml)Checks if the provided XML data represents the beginning of a new XMPP stream.voidsetAttemptedAllAuthenticationMethods(boolean haveAttemptedAllAuthenticationMethods)voidsetSessionAuthenticated(boolean authenticated)-
Methods inherited from class org.jivesoftware.openfire.net.StanzaHandler
closeNeverEncryptedConnection, closeNeverSecuredConnection, compressClient, compressionSuccessful, createSession, getAdditionalNamespaces, getAddress, getStreamHeader, isEndOfStream, isHostUnknown, isStreamManagementStanza, negotiateTLS, process, processIQ, processMessage, processPresence, processStanza, saslSuccessful, setSession, tlsNegotiated
-
-
-
-
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:StanzaHandlerChecks if the provided XML data represents the beginning of a new XMPP stream.- Overrides:
isStartOfStreamin classStanzaHandler- Parameters:
xml- The XML to verify- Returns:
- 'true' if the provided data represents the beginning of an XMPP stream.
-
initiateSession
protected void initiateSession(String stanza, XMPPPacketReader reader) throws Exception
- Overrides:
initiateSessionin classStanzaHandler- Throws:
Exception
-
getSession
public LocalSession getSession()
-
isSessionAuthenticated
public boolean isSessionAuthenticated()
-
setSessionAuthenticated
public void setSessionAuthenticated(boolean authenticated)
-
haveAttemptedAllAuthenticationMethods
public boolean haveAttemptedAllAuthenticationMethods()
-
setAttemptedAllAuthenticationMethods
public void setAttemptedAllAuthenticationMethods(boolean haveAttemptedAllAuthenticationMethods)
-
-