org.apache.qpid.server.handler
Class QueueDeclareHandler

java.lang.Object
  extended by org.apache.qpid.server.handler.QueueDeclareHandler
All Implemented Interfaces:
StateAwareMethodListener<org.apache.qpid.framing.QueueDeclareBody>

public class QueueDeclareHandler
extends java.lang.Object
implements StateAwareMethodListener<org.apache.qpid.framing.QueueDeclareBody>


Field Summary
 boolean autoRegister
           
 
Constructor Summary
protected QueueDeclareHandler()
           
 
Method Summary
protected  java.lang.String createName()
           
protected  AMQQueue createQueue(org.apache.qpid.framing.QueueDeclareBody body, QueueRegistry registry, AMQProtocolSession session)
           
static QueueDeclareHandler getInstance()
           
 void methodReceived(AMQStateManager stateManager, QueueRegistry queueRegistry, ExchangeRegistry exchangeRegistry, AMQProtocolSession protocolSession, AMQMethodEvent<org.apache.qpid.framing.QueueDeclareBody> evt)
           
protected static java.lang.String pad(int value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

autoRegister

public boolean autoRegister
Constructor Detail

QueueDeclareHandler

protected QueueDeclareHandler()
Method Detail

getInstance

public static QueueDeclareHandler getInstance()

methodReceived

public void methodReceived(AMQStateManager stateManager,
                           QueueRegistry queueRegistry,
                           ExchangeRegistry exchangeRegistry,
                           AMQProtocolSession protocolSession,
                           AMQMethodEvent<org.apache.qpid.framing.QueueDeclareBody> evt)
                    throws org.apache.qpid.AMQException
Specified by:
methodReceived in interface StateAwareMethodListener<org.apache.qpid.framing.QueueDeclareBody>
Throws:
org.apache.qpid.AMQException

createName

protected java.lang.String createName()

pad

protected static java.lang.String pad(int value)

createQueue

protected AMQQueue createQueue(org.apache.qpid.framing.QueueDeclareBody body,
                               QueueRegistry registry,
                               AMQProtocolSession session)
                        throws org.apache.qpid.AMQException
Throws:
org.apache.qpid.AMQException