use of org.apache.qpid.server.protocol.v0_8.AMQShortString in project qpid-broker-j by apache.
the class BasicPublishBody method process.
public static void process(final QpidByteBuffer buffer, final ServerChannelMethodProcessor dispatcher) {
int ticket = buffer.getUnsignedShort();
AMQShortString exchange = AMQShortString.readAMQShortString(buffer);
AMQShortString routingKey = AMQShortString.readAMQShortString(buffer);
byte bitfield = buffer.get();
boolean mandatory = (bitfield & 0x01) != 0;
boolean immediate = (bitfield & 0x02) != 0;
if (!dispatcher.ignoreAllButCloseOk()) {
dispatcher.receiveBasicPublish(exchange, routingKey, mandatory, immediate);
}
}
use of org.apache.qpid.server.protocol.v0_8.AMQShortString in project qpid-broker-j by apache.
the class BasicReturnBody method process.
public static void process(final QpidByteBuffer buffer, final ClientChannelMethodProcessor dispatcher) {
int replyCode = buffer.getUnsignedShort();
AMQShortString replyText = AMQShortString.readAMQShortString(buffer);
AMQShortString exchange = AMQShortString.readAMQShortString(buffer);
AMQShortString routingKey = AMQShortString.readAMQShortString(buffer);
if (!dispatcher.ignoreAllButCloseOk()) {
dispatcher.receiveBasicReturn(replyCode, replyText, exchange, routingKey);
}
}
use of org.apache.qpid.server.protocol.v0_8.AMQShortString in project qpid-broker-j by apache.
the class ConnectionCloseBody method process.
public static void process(final QpidByteBuffer buffer, final MethodProcessor dispatcher) {
int replyCode = buffer.getUnsignedShort();
AMQShortString replyText = AMQShortString.readAMQShortString(buffer);
int classId = buffer.getUnsignedShort();
int methodId = buffer.getUnsignedShort();
dispatcher.receiveConnectionClose(replyCode, replyText, classId, methodId);
}
use of org.apache.qpid.server.protocol.v0_8.AMQShortString in project qpid-broker-j by apache.
the class ConnectionOpenBody method process.
public static void process(final QpidByteBuffer buffer, final ServerMethodProcessor dispatcher) {
AMQShortString virtualHost = AMQShortString.readAMQShortString(buffer);
AMQShortString capabilities = AMQShortString.readAMQShortString(buffer);
boolean insist = (buffer.get() & 0x01) == 0x01;
if (!dispatcher.ignoreAllButCloseOk()) {
dispatcher.receiveConnectionOpen(virtualHost, capabilities, insist);
}
}
use of org.apache.qpid.server.protocol.v0_8.AMQShortString in project qpid-broker-j by apache.
the class ConnectionRedirectBody method process.
public static void process(final QpidByteBuffer buffer, final ClientMethodProcessor dispatcher) {
AMQShortString host = AMQShortString.readAMQShortString(buffer);
AMQShortString knownHosts = AMQShortString.readAMQShortString(buffer);
if (!dispatcher.ignoreAllButCloseOk()) {
dispatcher.receiveConnectionRedirect(host, knownHosts);
}
}
Aggregations