Class ServiceDynamicLoadbalanceEndpointFactory

  • All Implemented Interfaces:
    XMLToObjectMapper

    public class ServiceDynamicLoadbalanceEndpointFactory
    extends EndpointFactory
    Creates DynamicLoadbalanceEndpoint using an XML configuration.

     
           
     
     

    The configuration file has the following format. This can be even specified inline as.cloud.wso2.com as.stratoslive.com wso2as.domain esb.cloud.wso2.com esb.stratoslive.com wso2esb.domain governance.cloud.wso2.com governance.stratoslive.com wso2governance.domain gs.cloud.wso2.com gs.stratoslive.com wso2gs.domain

    • Field Detail

      • SERVICES_QNAME

        public static final QName SERVICES_QNAME
      • LB_CONFIG_QNAME

        public static final QName LB_CONFIG_QNAME
    • Method Detail

      • createEndpoint

        protected Endpoint createEndpoint​(org.apache.axiom.om.OMElement epConfig,
                                          boolean anonymousEndpoint,
                                          Properties properties)
        Description copied from class: EndpointFactory
        Creates the Endpoint implementation for the given XML endpoint configuration. If the endpoint configuration is an inline one, it should be an anonymous endpoint. If it is defined as an immediate child element of the definitions tag it should have a name, which is used as the key in local registry.
        Specified by:
        createEndpoint in class EndpointFactory
        Parameters:
        epConfig - OMElement containing the endpoint configuration.
        anonymousEndpoint - false if the endpoint has a name. true otherwise.
        properties - bag of properties to pass in any information to the factory
        Returns:
        Endpoint implementation for the given configuration.