Class ResolveCommandEvent

All Implemented Interfaces:
Serializable

public class ResolveCommandEvent extends RequestContextAwareEvent
The ResolveCommandEvent event class.

Event triggered for resolving the Command class to handle current HTTP request.

See Also:
  • Constructor Details

    • ResolveCommandEvent

      public ResolveCommandEvent(Object source, String commandName, HttpServletRequest request, HttpServletResponse response)
      Constructs the event.
      Parameters:
      source - the object on which the Event initially occurred
      commandName - current command name
      request - current HTTP request
      response - current HTTP response
  • Method Details

    • getCommandName

      public String getCommandName()
      Returns:
      the name of resolved command
    • getCommand

      public Command getCommand()
      Returns:
      command instance
    • setCommand

      public void setCommand(Command command)
      Sets the command instance which will be used to handle the current HTTP request.
      Parameters:
      command - command instance
    • hasCommand

      public boolean hasCommand()
      Returns:
      true if this event has the command set