Interface Dispatcher

All Superinterfaces:
Serializable
All Known Implementing Classes:
AbstractDispatcher, AbstractEventMappingDispatcher, AbstractMappingDispatcher, AbstractParameterDispatcher, ServletEventMappingDispatcher, ServletMappingDispatcher, ServletParameterDispatcher

public interface Dispatcher extends Serializable
This interface defines an intermediate handler that determines what method to execute in an Action. Unlike the classical execute signature, it is up to the dispatcher implementation to determine the particular arguments and return type.
Since:
Struts 1.4
Version:
$Rev$
  • Method Summary

    Modifier and Type
    Method
    Description
    Dispatches to the action referenced by the specified context.
  • Method Details

    • dispatch

      Object dispatch(ActionContext context) throws Exception
      Dispatches to the action referenced by the specified context.
      Parameters:
      context - the current action context
      Returns:
      the result type, null if the response was handled directly, or Void if the executed method has no return signature
      Throws:
      Exception - if an exception occurs