Search in sources :

Example 41 with AMQShortString

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);
    }
}
Also used : AMQShortString(org.apache.qpid.server.protocol.v0_8.AMQShortString)

Example 42 with AMQShortString

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);
    }
}
Also used : AMQShortString(org.apache.qpid.server.protocol.v0_8.AMQShortString)

Example 43 with AMQShortString

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);
}
Also used : AMQShortString(org.apache.qpid.server.protocol.v0_8.AMQShortString)

Example 44 with AMQShortString

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);
    }
}
Also used : AMQShortString(org.apache.qpid.server.protocol.v0_8.AMQShortString)

Example 45 with AMQShortString

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);
    }
}
Also used : AMQShortString(org.apache.qpid.server.protocol.v0_8.AMQShortString)

Aggregations

AMQShortString (org.apache.qpid.server.protocol.v0_8.AMQShortString)45 FieldTable (org.apache.qpid.server.protocol.v0_8.FieldTable)13 Transaction (com.sleepycat.je.Transaction)7 Database (com.sleepycat.je.Database)6 DatabaseEntry (com.sleepycat.je.DatabaseEntry)6 MessagePublishInfo (org.apache.qpid.server.protocol.v0_8.transport.MessagePublishInfo)6 TupleOutput (com.sleepycat.bind.tuple.TupleOutput)4 MessageConversionException (org.apache.qpid.server.protocol.converter.MessageConversionException)4 TupleInput (com.sleepycat.bind.tuple.TupleInput)3 DeliveryProperties (org.apache.qpid.server.protocol.v0_10.transport.DeliveryProperties)3 BasicContentHeaderProperties (org.apache.qpid.server.protocol.v0_8.transport.BasicContentHeaderProperties)3 URISyntaxException (java.net.URISyntaxException)2 HashSet (java.util.HashSet)2 MessageDestination (org.apache.qpid.server.message.MessageDestination)2 Exchange (org.apache.qpid.server.model.Exchange)2 Header (org.apache.qpid.server.protocol.v0_10.transport.Header)2 MessageProperties (org.apache.qpid.server.protocol.v0_10.transport.MessageProperties)2 ReplyTo (org.apache.qpid.server.protocol.v0_10.transport.ReplyTo)2 AMQBody (org.apache.qpid.server.protocol.v0_8.transport.AMQBody)2 ContentHeaderBody (org.apache.qpid.server.protocol.v0_8.transport.ContentHeaderBody)2