Class EndpointStore

java.lang.Object
org.wso2.carbon.endpoint.ui.endpoints.EndpointStore

public class EndpointStore extends Object
Keeps track of the endpoints that are registered for the Endpoint editor UI
  • Method Details

    • getInstance

      public static EndpointStore getInstance()
      Singleton access to the EndpointStore
      Returns:
      the singleton instance
    • registerEndpoint

      public void registerEndpoint(String endpointTagLocalName, EndpointService endpointService)
      Registers a EndpointService with the store
      Parameters:
      endpointTagLocalName - tag name of the endpoint being registered
      endpointService - implementation of the endpoint service for the endpoint with name endpointTagLocalName
    • getEndpointService

      public EndpointService getEndpointService(org.apache.axiom.om.OMElement element)
      Retrieves the EndpointService with the given element
      Parameters:
      element - configuration of the endpoint to retrieve the endpoint service
      Returns:
      the endpoint service mapped to the given configuration
    • getEndpointService

      public EndpointService getEndpointService(String tagLocalName)
      Retrieves the EndpointService with the given tagLocalName
      Parameters:
      tagLocalName - tag name of the endpoint to retrieve the endpoint service
      Returns:
      the endpoint service mapped to the given configuration
    • getRegisteredEndpoints

      public Collection<EndpointService> getRegisteredEndpoints()
      Retrieves all the EndpointService
      Returns:
      all endpoint services registered in the store
    • getMenuItems

      public ArrayList<String[]> getMenuItems()
      Retrieves the menu item of endpoint types, which is being used by the UI
      Returns:
      the mapped data model for the endpoint menu items