org.apache.qpid.client.messaging.address
Class AddressHelper

java.lang.Object
  extended by org.apache.qpid.client.messaging.address.AddressHelper

public class AddressHelper
extends Object

Utility class for extracting information from the address class


Field Summary
static String ALT_EXCHANGE
           
static String ARGUMENTS
           
static String ASSERT
           
static String AUTO_DELETE
           
static String BINDINGS
           
static String BROWSE
           
static String CAPACITY
           
static String CAPACITY_SOURCE
           
static String CAPACITY_TARGET
           
static String CREATE
           
static String DELETE
           
static String DURABLE
           
static String EXCHANGE
           
static String EXCLUSIVE
           
static String FILTER
           
static String KEY
           
static String LINK
           
static String MODE
           
static String NAME
           
static String NO_LOCAL
           
static String NODE
           
static String QUEUE
           
static String RELIABILITY
           
static String TYPE
           
static String X_BINDINGS
           
static String X_DECLARE
           
static String X_SUBSCRIBE
           
 
Constructor Summary
AddressHelper(org.apache.qpid.messaging.Address address)
           
 
Method Summary
 String getAssert()
           
 List<AMQDestination.Binding> getBindings(Map props)
           
 String getCreate()
           
 Map getDeclareArgs(Map props)
           
 String getDelete()
           
 Link getLink()
           
 Node getSourceNode(int addressType)
          if the type == queue x-declare args from the node props is used.
 Node getTargetNode(int addressType)
           
 int getTargetNodeType()
           
 boolean isBrowseOnly()
           
 boolean isNoLocal()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NODE

public static final String NODE
See Also:
Constant Field Values

LINK

public static final String LINK
See Also:
Constant Field Values

X_DECLARE

public static final String X_DECLARE
See Also:
Constant Field Values

X_BINDINGS

public static final String X_BINDINGS
See Also:
Constant Field Values

X_SUBSCRIBE

public static final String X_SUBSCRIBE
See Also:
Constant Field Values

CREATE

public static final String CREATE
See Also:
Constant Field Values

ASSERT

public static final String ASSERT
See Also:
Constant Field Values

DELETE

public static final String DELETE
See Also:
Constant Field Values

FILTER

public static final String FILTER
See Also:
Constant Field Values

NO_LOCAL

public static final String NO_LOCAL
See Also:
Constant Field Values

DURABLE

public static final String DURABLE
See Also:
Constant Field Values

EXCLUSIVE

public static final String EXCLUSIVE
See Also:
Constant Field Values

AUTO_DELETE

public static final String AUTO_DELETE
See Also:
Constant Field Values

TYPE

public static final String TYPE
See Also:
Constant Field Values

ALT_EXCHANGE

public static final String ALT_EXCHANGE
See Also:
Constant Field Values

BINDINGS

public static final String BINDINGS
See Also:
Constant Field Values

BROWSE

public static final String BROWSE
See Also:
Constant Field Values

MODE

public static final String MODE
See Also:
Constant Field Values

CAPACITY

public static final String CAPACITY
See Also:
Constant Field Values

CAPACITY_SOURCE

public static final String CAPACITY_SOURCE
See Also:
Constant Field Values

CAPACITY_TARGET

public static final String CAPACITY_TARGET
See Also:
Constant Field Values

NAME

public static final String NAME
See Also:
Constant Field Values

EXCHANGE

public static final String EXCHANGE
See Also:
Constant Field Values

QUEUE

public static final String QUEUE
See Also:
Constant Field Values

KEY

public static final String KEY
See Also:
Constant Field Values

ARGUMENTS

public static final String ARGUMENTS
See Also:
Constant Field Values

RELIABILITY

public static final String RELIABILITY
See Also:
Constant Field Values
Constructor Detail

AddressHelper

public AddressHelper(org.apache.qpid.messaging.Address address)
Method Detail

getCreate

public String getCreate()

getAssert

public String getAssert()

getDelete

public String getDelete()

isNoLocal

public boolean isNoLocal()

isBrowseOnly

public boolean isBrowseOnly()

getBindings

public List<AMQDestination.Binding> getBindings(Map props)

getDeclareArgs

public Map getDeclareArgs(Map props)

getTargetNodeType

public int getTargetNodeType()
                      throws Exception
Throws:
Exception

getTargetNode

public Node getTargetNode(int addressType)

getSourceNode

public Node getSourceNode(int addressType)
if the type == queue x-declare args from the node props is used. if the type == exchange x-declare args from the link props is used else just create a default temp queue.


getLink

public Link getLink()


Licensed to the Apache Software Foundation