Class SaslResponseFrame
java.lang.Object
com.swiftmq.amqp.v100.transport.AMQPFrame
com.swiftmq.amqp.v100.generated.security.sasl.SaslResponseFrame
- All Implemented Interfaces:
SaslFrameIF
,FrameIF
,Writable
Send the SASL response data as defined by the SASL specification.
- Version:
- AMQP Version v100. Generation Date: Wed Apr 18 14:09:32 CEST 2012
- Author:
- IIT Software GmbH, Bremen/Germany, (c) 2012, All Rights Reserved
-
Field Summary
FieldsFields inherited from class com.swiftmq.amqp.v100.transport.AMQPFrame
HEADER_SIZE, TYPE_CODE_AMQP_FRAME, TYPE_CODE_SASL_FRAME
-
Constructor Summary
ConstructorsConstructorDescriptionSaslResponseFrame
(int channel) Constructs a SaslResponseFrame.SaslResponseFrame
(int channel, AMQPList body) Constructs a SaslResponseFrame. -
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(SaslFrameVisitor visitor) Accept method for a SaslFrame visitor.int
Returns the predicted size of this SaslResponseFrame.Returns the mandatory Response field.Returns a value representation of this SaslResponseFrame.void
setResponse
(AMQPBinary response) Sets the mandatory Response field.toString()
protected void
writeBody
(DataOutput out) Methods inherited from class com.swiftmq.amqp.v100.transport.AMQPFrame
accept, addMorePayload, getCallback, getChannel, getMorePayloads, getPayload, getPayloadLength, getSemaphore, setCallback, setChannel, setPayload, setSemaphore, setTypeCode, writeContent
-
Field Details
-
DESCRIPTOR_NAME
-
DESCRIPTOR_CODE
public static long DESCRIPTOR_CODE -
codeConstructor
-
nameConstructor
-
-
Constructor Details
-
SaslResponseFrame
Constructs a SaslResponseFrame.- Parameters:
channel
- the channel idbody
- the frame body- Throws:
Exception
-
SaslResponseFrame
public SaslResponseFrame(int channel) Constructs a SaslResponseFrame.- Parameters:
channel
- the channel id
-
-
Method Details
-
accept
Accept method for a SaslFrame visitor.- Specified by:
accept
in interfaceSaslFrameIF
- Overrides:
accept
in classAMQPFrame
- Parameters:
visitor
- SaslFrame visitor
-
getResponse
Returns the mandatory Response field.- Returns:
- Response
-
setResponse
Sets the mandatory Response field.A block of opaque data passed to the security mechanism. The contents of this data are defined by the SASL security mechanism.
- Parameters:
response
- Response
-
getPredictedSize
public int getPredictedSize()Returns the predicted size of this SaslResponseFrame. The predicted size may be greater than the actual size but it can never be less.- Specified by:
getPredictedSize
in interfaceFrameIF
- Specified by:
getPredictedSize
in interfaceSaslFrameIF
- Overrides:
getPredictedSize
in classAMQPFrame
- Returns:
- predicted size
-
writeBody
- Specified by:
writeBody
in classAMQPFrame
- Throws:
IOException
-
getValueString
Returns a value representation of this SaslResponseFrame.- Specified by:
getValueString
in interfaceFrameIF
- Specified by:
getValueString
in interfaceSaslFrameIF
- Overrides:
getValueString
in classAMQPFrame
- Returns:
- value representation
-
toString
-