|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.activemq.broker.PublishedAddressPolicy
public class PublishedAddressPolicy
Policy object that controls how a TransportConnector publishes the connector's address to the outside world. By default the connector will publish itself using the resolved host name of the bound server socket.
| Nested Class Summary | |
|---|---|
static class |
PublishedAddressPolicy.PublishedHostStrategy
Defines the value of the published host value. |
| Constructor Summary | |
|---|---|
PublishedAddressPolicy()
|
|
| Method Summary | |
|---|---|
String |
getClusterClientUriQuery()
Gets the URI query that's configured on the published URI that's sent to client's when the cluster info is updated. |
String |
getPublishableConnectString(TransportConnector connector)
|
URI |
getPublishableConnectURI(TransportConnector connector)
Using the supplied TransportConnector this method returns the String that will be used to update clients with this connector's connect address. |
protected String |
getPublishedFragmentValue(String uriFragmentEntry)
Subclasses can override what host value is published by implementing alternate logic for this method. |
PublishedAddressPolicy.PublishedHostStrategy |
getPublishedHostStrategy()
|
protected String |
getPublishedHostValue(String uriHostEntry)
Subclasses can override what host value is published by implementing alternate logic for this method. |
protected String |
getPublishedPathValue(String uriPathEntry)
Subclasses can override what path value is published by implementing alternate logic for this method. |
protected String |
getPublishedUserInfoValue(String uriUserInfoEntry)
Subclasses can override what user info value is published by implementing alternate logic for this method. |
void |
setClusterClientUriQuery(String clusterClientUriQuery)
Sets the URI query that's configured on the published URI that's sent to client's when the cluster info is updated. |
void |
setPortMapping(HashMap<Integer,Integer> portMapping)
|
void |
setPublishedHostStrategy(PublishedAddressPolicy.PublishedHostStrategy strategy)
|
void |
setPublishedHostStrategy(String strategy)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PublishedAddressPolicy()
| Method Detail |
|---|
public URI getPublishableConnectURI(TransportConnector connector)
throws Exception
connector - The TransportConnector whose address is to be published.
Exception
public String getPublishableConnectString(TransportConnector connector)
throws Exception
Exception
protected String getPublishedHostValue(String uriHostEntry)
throws UnknownHostException
uriHostEntry -
UnknownHostExceptionprotected String getPublishedPathValue(String uriPathEntry)
uriPathEntry - The original value of the URI path.
protected String getPublishedFragmentValue(String uriFragmentEntry)
uriFragmentEntry - The original value of the URI Fragment.
protected String getPublishedUserInfoValue(String uriUserInfoEntry)
uriUserInfoEntry - The original value of the URI user info.
public String getClusterClientUriQuery()
public void setClusterClientUriQuery(String clusterClientUriQuery)
clusterClientUriQuery - the clusterClientUriQuery to setpublic PublishedAddressPolicy.PublishedHostStrategy getPublishedHostStrategy()
public void setPublishedHostStrategy(PublishedAddressPolicy.PublishedHostStrategy strategy)
publishedHostStrategy - the publishedHostStrategy to setpublic void setPublishedHostStrategy(String strategy)
publishedHostStrategy - the publishedHostStrategy to setpublic void setPortMapping(HashMap<Integer,Integer> portMapping)
portMapping - map the ports in restrictive environments
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||