summaryrefslogtreecommitdiff
path: root/java/common/src/main/java/org/apache/qpid/framing/AccessRequestBody.java
diff options
context:
space:
mode:
Diffstat (limited to 'java/common/src/main/java/org/apache/qpid/framing/AccessRequestBody.java')
-rw-r--r--java/common/src/main/java/org/apache/qpid/framing/AccessRequestBody.java10
1 files changed, 6 insertions, 4 deletions
diff --git a/java/common/src/main/java/org/apache/qpid/framing/AccessRequestBody.java b/java/common/src/main/java/org/apache/qpid/framing/AccessRequestBody.java
index ce2a5a1317..8dec50c400 100644
--- a/java/common/src/main/java/org/apache/qpid/framing/AccessRequestBody.java
+++ b/java/common/src/main/java/org/apache/qpid/framing/AccessRequestBody.java
@@ -165,9 +165,8 @@ public class AccessRequestBody extends AMQMethodBodyImpl implements EncodableAMQ
return buf.toString();
}
- public static void process(final int channelId,
- final MarkableDataInput buffer,
- final MethodProcessor dispatcher) throws IOException
+ public static void process(final MarkableDataInput buffer,
+ final ServerChannelMethodProcessor dispatcher) throws IOException
{
AMQShortString realm = buffer.readAMQShortString();
byte bitfield = buffer.readByte();
@@ -176,6 +175,9 @@ public class AccessRequestBody extends AMQMethodBodyImpl implements EncodableAMQ
boolean active = (bitfield & 0x04) == 0x4 ;
boolean write = (bitfield & 0x08) == 0x8 ;
boolean read = (bitfield & 0x10) == 0x10 ;
- dispatcher.receiveAccessRequest(channelId, realm, exclusive, passive, active, write, read);
+ if(!dispatcher.ignoreAllButCloseOk())
+ {
+ dispatcher.receiveAccessRequest(realm, exclusive, passive, active, write, read);
+ }
}
}