Class TemplateEndpoint

  • All Implemented Interfaces:
    IEndpoint

    public class TemplateEndpoint
    extends Endpoint
    • Constructor Detail

      • TemplateEndpoint

        public TemplateEndpoint()
    • Method Detail

      • getTagLocalName

        public String getTagLocalName()
        Description copied from interface: IEndpoint
        Get the tag name of the endpoint
        Returns:
        the xml element tag name
      • getEpName

        public String getEpName()
      • setEpName

        public void setEpName​(String epName)
      • getAddress

        public String getAddress()
      • setAddress

        public void setAddress​(String address)
      • setParameters

        public void setParameters​(Map<String,​String> parameters)
      • getTargetTemplate

        public String getTargetTemplate()
      • setTargetTemplate

        public void setTargetTemplate​(String targetTemplate)
      • addParameter

        public void addParameter​(String key,
                                 String value)
      • serialize

        public org.apache.axiom.om.OMElement serialize​(org.apache.axiom.om.OMElement parent)
        Description copied from interface: IEndpoint
        Serialize 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: IEndpoint
        Populate this endpoint from the Synapse endpoint configuration.
        Parameters:
        elem - synapse endpoint configuration
        isAnonymous - 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: IEndpoint
        Populate this endpoint from the Synapse endpoint template configuration.
        Parameters:
        template - synapse endpoint template configuration
        factory - Template definition factory