Class ListEndpoint
- java.lang.Object
-
- org.wso2.carbon.endpoint.ui.endpoints.Endpoint
-
- org.wso2.carbon.endpoint.ui.endpoints.ListEndpoint
-
- All Implemented Interfaces:
IEndpoint
- Direct Known Subclasses:
FailoverEndpoint,LoadBalanceEndpoint,RecipientlistEndpoint
public abstract class ListEndpoint extends Endpoint
Basic structure for theListEndpointwhich contains a list of child endpoints
-
-
Constructor Summary
Constructors Constructor Description ListEndpoint()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidaddChild(Endpoint endpoint)Add a child endpoint to the listprotected voidaddChildren(org.apache.axiom.om.OMElement element, ListEndpoint listEndpoint)Add children to theListEndpointfrom a configuration.EndpointgetChild(int pos)Get a child endpointList<Endpoint>getList()Get the list of child endpoints containing in this endpointabstract booleanisRetryAvailable()EndpointremoveChild(int pos)Remove a child endpointbooleanremoveChild(Endpoint endpoint)Remove a child endpointprotected voidserializeChildren(org.apache.axiom.om.OMElement parent, List<Endpoint> list)Serialize all child endpoints-
Methods inherited from class org.wso2.carbon.endpoint.ui.endpoints.Endpoint
getEmptyEndpointElement
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.wso2.carbon.endpoint.ui.endpoints.IEndpoint
build, build, getTagLocalName, serialize
-
-
-
-
Method Detail
-
getList
public List<Endpoint> getList()
Get the list of child endpoints containing in this endpoint- Returns:
- all the child endpoints
-
getChild
public Endpoint getChild(int pos)
Get a child endpoint- Parameters:
pos- position in the child endpoint list- Returns:
- child endpoint of the given position in the list
-
removeChild
public Endpoint removeChild(int pos)
Remove a child endpoint- Parameters:
pos- position in the child endpoint list
-
removeChild
public boolean removeChild(Endpoint endpoint)
Remove a child endpoint- Parameters:
endpoint- Endpoint to be removed- Returns:
- whether child endpoint removal is success
-
addChild
public void addChild(Endpoint endpoint)
Add a child endpoint to the list- Parameters:
endpoint- endpoint to be added
-
serializeChildren
protected void serializeChildren(org.apache.axiom.om.OMElement parent, List<Endpoint> list)Serialize all child endpoints- Parameters:
parent- parent endpointlist- child endpoint list
-
addChildren
protected void addChildren(org.apache.axiom.om.OMElement element, ListEndpoint listEndpoint)Add children to theListEndpointfrom a configuration.- Parameters:
element- configuration elementlistEndpoint- Endpoint to which childEndpoints to be added
-
isRetryAvailable
public abstract boolean isRetryAvailable()
-
-