public synchronized void clearEncodedForm() { nullEncodedForm(); _headers.clearEncodedForm(); }
synchronized void reallocate() { _headers.clearEncodedForm(); if (_encodedForm != null) { _encodedForm = QpidByteBuffer.reallocateIfNecessary(_encodedForm); } }
public static void process(final QpidByteBuffer buffer, final ClientChannelMethodProcessor dispatcher) throws AMQFrameDecodingException { int replyCode = buffer.getUnsignedShort(); AMQShortString replyText = AMQShortString.readAMQShortString(buffer); FieldTable details = EncodingUtils.readFieldTable(buffer); if(!dispatcher.ignoreAllButCloseOk()) { dispatcher.receiveChannelAlert(replyCode, replyText, details); } if (details != null) { details.clearEncodedForm(); } } }
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(); } } }
public static void process(final QpidByteBuffer buffer, final ServerChannelMethodProcessor dispatcher) throws AMQFrameDecodingException { int ticket = buffer.getUnsignedShort(); AMQShortString queue = AMQShortString.readAMQShortString(buffer); byte bitfield = buffer.get(); boolean passive = (bitfield & 0x01 ) == 0x01; boolean durable = (bitfield & 0x02 ) == 0x02; boolean exclusive = (bitfield & 0x04 ) == 0x04; boolean autoDelete = (bitfield & 0x08 ) == 0x08; boolean nowait = (bitfield & 0x010 ) == 0x010; FieldTable arguments = EncodingUtils.readFieldTable(buffer); if(!dispatcher.ignoreAllButCloseOk()) { dispatcher.receiveQueueDeclare(queue, passive, durable, exclusive, autoDelete, nowait, arguments); } if (arguments != null) { arguments.clearEncodedForm(); } } }
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 routingKey = AMQShortString.readAMQShortString(buffer); FieldTable arguments = EncodingUtils.readFieldTable(buffer); if(!dispatcher.ignoreAllButCloseOk()) { dispatcher.receiveQueueUnbind(queue, exchange, routingKey, arguments); } if (arguments != null) { arguments.clearEncodedForm(); } } }
public static void process(final QpidByteBuffer in, final ClientMethodProcessor dispatcher) throws AMQFrameDecodingException { short versionMajor = in.getUnsignedByte(); short versionMinor = in.getUnsignedByte(); FieldTable serverProperties = EncodingUtils.readFieldTable(in); byte[] mechanisms = EncodingUtils.readBytes(in); byte[] locales = EncodingUtils.readBytes(in); if(!dispatcher.ignoreAllButCloseOk()) { dispatcher.receiveConnectionStart(versionMajor, versionMinor, serverProperties, mechanisms, locales); } if (serverProperties != null) { serverProperties.clearEncodedForm(); } } }
public static void process(final QpidByteBuffer buffer, final ServerChannelMethodProcessor dispatcher) throws AMQFrameDecodingException { int ticket = buffer.getUnsignedShort(); AMQShortString queue = AMQShortString.readAMQShortString(buffer); AMQShortString consumerTag = AMQShortString.readAMQShortString(buffer); byte bitfield = buffer.get(); boolean noLocal = (bitfield & 0x01) == 0x01; boolean noAck = (bitfield & 0x02) == 0x02; boolean exclusive = (bitfield & 0x04) == 0x04; boolean nowait = (bitfield & 0x08) == 0x08; FieldTable arguments = EncodingUtils.readFieldTable(buffer); if(!dispatcher.ignoreAllButCloseOk()) { dispatcher.receiveBasicConsume(queue, consumerTag, noLocal, noAck, exclusive, nowait, arguments); } if (arguments != null) { arguments.clearEncodedForm(); } } }
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(); } } }