org.springframework.amqp.core
Class Address
java.lang.Object
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. |
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 -
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
Copyright © 2010. All Rights Reserved.