Interface TestandtargetCommand
The interface for commands executed by
CommandServlet.-
Method Summary
Modifier and TypeMethodDescriptiongetName()The command's action name.performCommand(SlingHttpServletRequest request, SlingHttpServletResponse response) Executes the actual command.
-
Method Details
-
getName
String getName()The command's action name.- Returns:
- Name of action
-
performCommand
HtmlResponse performCommand(SlingHttpServletRequest request, SlingHttpServletResponse response) throws ServletException, IOException Executes the actual command.- Parameters:
request- The request objectresponse- The response object- Returns:
- The HTML response of the command
- Throws:
ServletException-ServletExceptionIOException-IOException
-