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
Stanza handler for responding to incoming stanzas when the server is acting as the client in an S2S scenario.- Author:
- Alex Gidman, Matthew Vivian
-
-
Field Summary
-
Fields inherited from class org.jivesoftware.openfire.net.StanzaHandler
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 String
getRemoteDomain()
LocalSession
getSession()
CompletableFuture<Void>
haveAttemptedAllAuthenticationMethods()
protected void
initiateSession(String stanza, XMPPPacketReader reader)
CompletableFuture<Void>
isSessionAuthenticated()
void
setAttemptedAllAuthenticationMethods()
void
setSessionAuthenticated()
-
Methods inherited from class org.jivesoftware.openfire.net.StanzaHandler
closeNeverEncryptedConnection, compressClient, compressionSuccessful, createSession, getAddress, getStreamHeader, isEndOfStream, isHostUnknown, isStartOfStream, 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
-
initiateSession
protected void initiateSession(String stanza, XMPPPacketReader reader) throws Exception
- Overrides:
initiateSession
in classStanzaHandler
- Throws:
Exception
-
getSession
public LocalSession getSession()
-
isSessionAuthenticated
public CompletableFuture<Void> isSessionAuthenticated()
-
setSessionAuthenticated
public void setSessionAuthenticated()
-
haveAttemptedAllAuthenticationMethods
public CompletableFuture<Void> haveAttemptedAllAuthenticationMethods()
-
setAttemptedAllAuthenticationMethods
public void setAttemptedAllAuthenticationMethods()
-
getRemoteDomain
public String getRemoteDomain()
-
-