|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.mule.impl.EndpointList
EndpointList
encapsulates two lists of ProviderDescriptors;
send endpoints and receive endpoints. It also provides helper methods to
query manipulate and maintain state of the lists.
Constructor Summary | |
EndpointList()
Default constructor |
Method Summary | |
void |
add(UMOImmutableEndpoint endpoint)
Add an endpoint to the list |
void |
add(UMOImmutableEndpoint endpoint,
boolean readOnly)
Add an endpoint to the list |
void |
addProviderList(EndpointList list)
|
protected void |
addReceiveProvider(UMOImmutableEndpoint endpoint,
boolean readOnly)
Adds a receive endpoint to the list |
void |
addSendProvider(UMOImmutableEndpoint endpoint,
boolean readOnly)
Adds a send endpoint to the list |
void |
clear()
|
UMOEndpoint |
get(java.lang.String name)
Returns an endpoint with the given name |
java.util.Map |
getAll()
This methods returns an unmodifiable map of all the the endpoints registered in this list |
UMOImmutableEndpoint |
getDefaultReceiveProvider()
Returns the default Receive Provider in the list. |
UMOImmutableEndpoint |
getDefaultSendProvider()
Returns the default Send Provider in the list. |
UMOEndpoint |
getReceiveProvider(java.lang.String name)
Retrieves a receive endpoint with the given name |
UMOImmutableEndpoint[] |
getReceiveProvidersByEndpoint(java.lang.String endpoint,
boolean exactMatch)
Returns a list of receive endpoints that use the given endpointUri |
UMOImmutableEndpoint[] |
getReceiveProvidersByProtocol(java.lang.String protocol)
Returns a list of receive endpoints that use the given protocol |
int |
getReceiveProvidersSize()
Returns the total number of receive endpoints |
java.util.Iterator |
getReceiverNames()
Returns an Iterator of receive endpoint names in the endpoint list |
java.util.Iterator |
getSenderNames()
Returns an Iterator of send endpoint names in the endpoint list |
UMOEndpoint |
getSendProvider(java.lang.String name)
Retrieves a send endpoint with the given name |
MuleEndpoint[] |
getSendProvidersByEndpoint(java.lang.String endpoint,
boolean exactMatch)
Returns a list of send endpoints that use the given protocol |
MuleEndpoint[] |
getSendProvidersByProtocol(java.lang.String protocol)
Returns a list of send endpoints that use the given protocol |
int |
getSendProvidersSize()
Returns the total number of send endpoints |
int |
getTotalSize()
Gets the total number of all endpoints in the list |
void |
remove(UMOImmutableEndpoint endpoint)
Removes an endpoint from the list |
void |
setDefaultReceiveProvider(UMOImmutableEndpoint endpoint)
Sets the specified endpoint to be the default in the list |
void |
setDefaultReceiveProvider(UMOImmutableEndpoint endpoint,
boolean readOnly)
Sets the specified endpoint to be the default in the list |
void |
setDefaultSendProvider(UMOImmutableEndpoint endpoint)
Sets the specified endpoint to be the default in the list |
void |
setDefaultSendProvider(UMOImmutableEndpoint endpoint,
boolean readOnly)
Sets the specified endpoint to be the default in the list |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public EndpointList()
Method Detail |
public java.util.Iterator getReceiverNames()
public java.util.Iterator getSenderNames()
public UMOEndpoint getReceiveProvider(java.lang.String name)
name
- Name of the endpoint to return
public UMOEndpoint getSendProvider(java.lang.String name)
name
- Name of the endpoint to return
public void addSendProvider(UMOImmutableEndpoint endpoint, boolean readOnly)
endpoint
- the endpoint to addreadOnly
- whether the endpoint should be read-onlypublic void addProviderList(EndpointList list)
protected void addReceiveProvider(UMOImmutableEndpoint endpoint, boolean readOnly)
endpoint
- the endpoint to addreadOnly
- whether the endpoint should be read-onlypublic void setDefaultSendProvider(UMOImmutableEndpoint endpoint) throws MuleException
endpoint
- the default endpoint
MuleException
- if the endpoint is null or is not of the correct type i.e. a
receiver not a senderpublic void setDefaultSendProvider(UMOImmutableEndpoint endpoint, boolean readOnly) throws MuleException
endpoint
- the default endpointreadOnly
- Whether the endpoint should be made read-only
MuleException
- if the endpoint is null or is not of the correct type i.e. a
receiver not a senderpublic void setDefaultReceiveProvider(UMOImmutableEndpoint endpoint) throws MuleException
endpoint
- the default endpoint
MuleException
- if the endpoint is null or is not of the correct type i.e. a
sender not a receiverpublic void setDefaultReceiveProvider(UMOImmutableEndpoint endpoint, boolean readOnly) throws MuleException
endpoint
- the default endpointreadOnly
- Whether the endpoint should be made read-only
MuleException
- if the endpoint is null or is not of the correct type i.e. a
sender not a receiverpublic UMOImmutableEndpoint getDefaultReceiveProvider()
public UMOImmutableEndpoint getDefaultSendProvider()
public int getSendProvidersSize()
public int getReceiveProvidersSize()
public void add(UMOImmutableEndpoint endpoint)
endpoint
- the proivder to addpublic void add(UMOImmutableEndpoint endpoint, boolean readOnly)
endpoint
- the proivder to addreadOnly
- Whether the proivder should be made read-onlypublic UMOEndpoint get(java.lang.String name)
name
- the name of the proivder to return
public void remove(UMOImmutableEndpoint endpoint)
endpoint
- the proivder to removepublic int getTotalSize()
public UMOImmutableEndpoint[] getReceiveProvidersByProtocol(java.lang.String protocol)
protocol
- the protocol name to select the endpoints with
public MuleEndpoint[] getSendProvidersByProtocol(java.lang.String protocol)
protocol
- the protocol name to select the endpoints with
public UMOImmutableEndpoint[] getReceiveProvidersByEndpoint(java.lang.String endpoint, boolean exactMatch)
endpoint
- the endpointUri to select the endpoints withexactMatch
- determines if wildcard matching should be used
public MuleEndpoint[] getSendProvidersByEndpoint(java.lang.String endpoint, boolean exactMatch)
endpoint
- the endpointUri to select the endpoints withexactMatch
- determines if wildcard matching should be used
public void clear()
public java.util.Map getAll()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |