Class TemplateEndpoint
java.lang.Object
org.wso2.carbon.endpoint.ui.endpoints.Endpoint
org.wso2.carbon.endpoint.ui.endpoints.template.TemplateEndpoint
- All Implemented Interfaces:
IEndpoint
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddParameter(String key, String value) voidbuild(org.apache.axiom.om.OMElement elem, boolean isAnonymous) Populate this endpoint from the Synapse endpoint configuration.voidbuild(org.apache.synapse.endpoints.Template template, org.apache.synapse.config.xml.endpoints.DefinitionFactory factory) Populate this endpoint from the Synapse endpoint template configuration.Get the tag name of the endpointorg.apache.axiom.om.OMElementserialize(org.apache.axiom.om.OMElement parent) Serialize this endpoint in to the corresponding Synapse endpoint configuration.voidsetAddress(String address) voidvoidsetParameters(Map<String, String> parameters) voidsetTargetTemplate(String targetTemplate) Methods inherited from class org.wso2.carbon.endpoint.ui.endpoints.Endpoint
getEmptyEndpointElement
-
Constructor Details
-
TemplateEndpoint
public TemplateEndpoint()
-
-
Method Details
-
getTagLocalName
Description copied from interface:IEndpointGet the tag name of the endpoint- Returns:
- the xml element tag name
-
getEpName
-
setEpName
-
getAddress
-
setAddress
-
getParameters
-
setParameters
-
getTargetTemplate
-
setTargetTemplate
-
addParameter
-
serialize
public org.apache.axiom.om.OMElement serialize(org.apache.axiom.om.OMElement parent) Description copied from interface:IEndpointSerialize this endpoint in to the corresponding Synapse endpoint configuration.- Parameters:
parent- if present the serialize node will be added to the parent- Returns:
- the Synapse endpoint configuration XML
-
build
public void build(org.apache.axiom.om.OMElement elem, boolean isAnonymous) Description copied from interface:IEndpointPopulate this endpoint from the Synapse endpoint configuration.- Parameters:
elem- synapse endpoint configurationisAnonymous- whether the endpoint has a name
-
build
public void build(org.apache.synapse.endpoints.Template template, org.apache.synapse.config.xml.endpoints.DefinitionFactory factory) Description copied from interface:IEndpointPopulate this endpoint from the Synapse endpoint template configuration.- Parameters:
template- synapse endpoint template configurationfactory- Template definition factory
-