Spring AMQP

org.springframework.amqp.core
Class Address

java.lang.Object
  extended by org.springframework.amqp.core.Address

public class Address
extends Object

Represents an address for publication of an AMQP message. The AMQP 0-8 and 0-9 specifications have an unstructured string that is used as a "reply to" address. There are however conventions in use and this class makes it easier to follow these conventions.

Author:
Mark Pollack

Constructor Summary
Address(ExchangeType exchangeType, String exchangeName, String routingKey)
          Create an Address given the exchange type, exchange name and routing key.
Address(String address)
          Create an Address instance from an unstructured String.
 
Method Summary
 String getExchangeName()
           
 ExchangeType getExchangeType()
           
 String getRoutingKey()
           
 boolean isStructured()
           
static Address parse(String address)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Address

public Address(String address)
Create an Address instance from an unstructured String.

Parameters:
address - an unstructured string.

Address

public Address(ExchangeType exchangeType,
               String exchangeName,
               String routingKey)
Create an Address given the exchange type, exchange name and routing key. This will set the

Parameters:
exchangeType -
exchangeName -
routingKey -
Method Detail

parse

public static Address parse(String address)

getExchangeType

public ExchangeType getExchangeType()

getExchangeName

public String getExchangeName()

getRoutingKey

public String getRoutingKey()

isStructured

public boolean isStructured()

toString

public String toString()
Overrides:
toString in class Object

Spring AMQP

Copyright © 2010. All Rights Reserved.