use of org.apache.qpid.server.protocol.v0_8.AMQShortString in project qpid-broker-j by apache.
the class ConnectionStartOkBody method process.
public static void process(final QpidByteBuffer in, final ServerMethodProcessor dispatcher) throws AMQFrameDecodingException {
FieldTable clientProperties = EncodingUtils.readFieldTable(in);
AMQShortString mechanism = AMQShortString.readAMQShortString(in);
byte[] response = EncodingUtils.readBytes(in);
AMQShortString locale = AMQShortString.readAMQShortString(in);
if (!dispatcher.ignoreAllButCloseOk()) {
dispatcher.receiveConnectionStartOk(clientProperties, mechanism, response, locale);
}
if (clientProperties != null) {
clientProperties.clearEncodedForm();
}
}
use of org.apache.qpid.server.protocol.v0_8.AMQShortString in project qpid-broker-j by apache.
the class ExchangeBoundOkBody method process.
public static void process(final QpidByteBuffer buffer, final ClientChannelMethodProcessor dispatcher) {
int replyCode = buffer.getUnsignedShort();
AMQShortString replyText = AMQShortString.readAMQShortString(buffer);
if (!dispatcher.ignoreAllButCloseOk()) {
dispatcher.receiveExchangeBoundOk(replyCode, replyText);
}
}
use of org.apache.qpid.server.protocol.v0_8.AMQShortString in project qpid-broker-j by apache.
the class ExchangeDeclareBody method process.
public static void process(final QpidByteBuffer buffer, final ServerChannelMethodProcessor dispatcher) throws AMQFrameDecodingException {
int ticket = buffer.getUnsignedShort();
AMQShortString exchange = AMQShortString.readAMQShortString(buffer);
AMQShortString type = AMQShortString.readAMQShortString(buffer);
byte bitfield = buffer.get();
boolean passive = (bitfield & 0x1) == 0x1;
boolean durable = (bitfield & 0x2) == 0x2;
boolean autoDelete = (bitfield & 0x4) == 0x4;
boolean internal = (bitfield & 0x8) == 0x8;
boolean nowait = (bitfield & 0x10) == 0x10;
FieldTable arguments = EncodingUtils.readFieldTable(buffer);
if (!dispatcher.ignoreAllButCloseOk()) {
dispatcher.receiveExchangeDeclare(exchange, type, passive, durable, autoDelete, internal, nowait, arguments);
}
if (arguments != null) {
arguments.clearEncodedForm();
}
}
use of org.apache.qpid.server.protocol.v0_8.AMQShortString in project qpid-broker-j by apache.
the class ExchangeDeleteBody method process.
public static void process(final QpidByteBuffer buffer, final ServerChannelMethodProcessor dispatcher) {
int ticket = buffer.getUnsignedShort();
AMQShortString exchange = AMQShortString.readAMQShortString(buffer);
byte bitfield = buffer.get();
boolean ifUnused = (bitfield & 0x01) == 0x01;
boolean nowait = (bitfield & 0x02) == 0x02;
if (!dispatcher.ignoreAllButCloseOk()) {
dispatcher.receiveExchangeDelete(exchange, ifUnused, nowait);
}
}
use of org.apache.qpid.server.protocol.v0_8.AMQShortString in project qpid-broker-j by apache.
the class QueueBindBody method process.
public static void process(final QpidByteBuffer buffer, final ServerChannelMethodProcessor dispatcher) throws AMQFrameDecodingException {
int ticket = buffer.getUnsignedShort();
AMQShortString queue = AMQShortString.readAMQShortString(buffer);
AMQShortString exchange = AMQShortString.readAMQShortString(buffer);
AMQShortString bindingKey = AMQShortString.readAMQShortString(buffer);
boolean nowait = (buffer.get() & 0x01) == 0x01;
FieldTable arguments = EncodingUtils.readFieldTable(buffer);
if (!dispatcher.ignoreAllButCloseOk()) {
dispatcher.receiveQueueBind(queue, exchange, bindingKey, nowait, arguments);
}
if (arguments != null) {
arguments.clearEncodedForm();
}
}
Aggregations