List of usage examples for com.rabbitmq.client.impl Frame getPayload
public byte[] getPayload()
From source file:de.htwk_leipzig.bis.connection.handshake.clientRewrite.CommandAssembler.java
License:Mozilla Public License
private void consumeBodyFrame(Frame f) { if (f.type == AMQP.FRAME_BODY) { byte[] fragment = f.getPayload(); this.remainingBodyBytes -= fragment.length; updateContentBodyState();/*ww w.j ava 2s . com*/ if (this.remainingBodyBytes < 0) { throw new UnsupportedOperationException("%%%%%% FIXME unimplemented"); } appendBodyFragment(fragment); } else { throw new UnexpectedFrameError(f, AMQP.FRAME_BODY); } }