Class ListRestEndpointsCommand

  • All Implemented Interfaces:
    AdminCommand

    @Service(name="list-rest-endpoints")
    @PerLookup
    @CommandLock(NONE)
    @ExecuteOn(DAS)
    public class ListRestEndpointsCommand
    extends Object
    implements AdminCommand
    CLI for listing all REST endpoints.

    asadmin list-rest-endpoints [--appname [--componentname ]] Will be executed on DAS

    Author:
    Matt Gill
    • Constructor Detail

      • ListRestEndpointsCommand

        public ListRestEndpointsCommand()
    • Method Detail

      • execute

        public void execute​(AdminCommandContext context)
        Description copied from interface: AdminCommand
        Executes the command with the command parameters passed as Properties where the keys are the parameter names and the values are the parameter values
        Specified by:
        execute in interface AdminCommand
        Parameters:
        context - information
      • getEndpointMap

        public Map<String,​Set<String>> getEndpointMap​(String appName)
        Returns a list of a map of endpoint -> list of methods.
        Parameters:
        appName - the name of the application.
        Throws:
        IllegalArgumentException - if the application does not contain endpoints. Specifies the reason.