Class Sasl2ResumeResult
java.lang.Object
org.jivesoftware.openfire.streammanagement.Sasl2ResumeResult
Outcome of
StreamManager.processSasl2Resume(ResumeRequest): either the <resumed/> element
(and the now-resumed session) to embed in a SASL2 <success/> response, or the <failed/> element to
embed instead.-
Method Summary
Modifier and TypeMethodDescriptionorg.dom4j.ElementReturns the element (<resumed/>on success,<failed/>otherwise) to embed in the SASL2<success/>response.Returns the session that was resumed.booleanReturns whether the resume request was honored.
-
Method Details
-
isSuccess
public boolean isSuccess()Returns whether the resume request was honored.- Returns:
trueif the session was successfully resumed.
-
getResultElement
@Nonnull public org.dom4j.Element getResultElement()Returns the element (<resumed/>on success,<failed/>otherwise) to embed in the SASL2<success/>response.- Returns:
- the result element (never null).
-
getResumedSession
Returns the session that was resumed. Only set whenisSuccess()returnstrue. Guaranteed to be non-null whenisSuccess()returnstrue.- Returns:
- the resumed session, or
nullon failure.
-