Package org.apache.qpid.protonj2.engine
Class SASLEnvelope
java.lang.Object
org.apache.qpid.protonj2.engine.PerformativeEnvelope<SaslPerformative>
org.apache.qpid.protonj2.engine.SASLEnvelope
Frame object containing a SASL performative
-
Field Summary
Modifier and TypeFieldDescriptionstatic final byte
The frame type marker used when decoding or encoding AMQP Header frames. -
Constructor Summary
ConstructorDescriptionSASLEnvelope
(SaslPerformative performative) Creates a new SASL envelope that wraps the given SASL performative.SASLEnvelope
(SaslPerformative performative, ProtonBuffer payload) Creates a new SASL envelope that wraps the given SASL performative. -
Method Summary
Modifier and TypeMethodDescription<E> void
invoke
(SaslPerformative.SaslPerformativeHandler<E> handler, E context) Invoke the correct handler based on the SASL performative contained in this envelope.Methods inherited from class org.apache.qpid.protonj2.engine.PerformativeEnvelope
getBody, getChannel, getFrameType, getPayload, toString
-
Field Details
-
SASL_FRAME_TYPE
public static final byte SASL_FRAME_TYPEThe frame type marker used when decoding or encoding AMQP Header frames.- See Also:
-
-
Constructor Details
-
SASLEnvelope
Creates a new SASL envelope that wraps the given SASL performative.- Parameters:
performative
- The SASL performative to be wrapped.
-
SASLEnvelope
Creates a new SASL envelope that wraps the given SASL performative.- Parameters:
performative
- The SASL performative to be wrapped.payload
- The payload that accompanies the wrapped SASL performative.
-
-
Method Details
-
invoke
Invoke the correct handler based on the SASL performative contained in this envelope.- Type Parameters:
E
- The type of the context object that accompanies the invocation.- Parameters:
handler
- TheAMQPHeader.HeaderHandler
that should be invoked based on the performative type.context
- The context value to provide when signaling the SASL handler.
-