net.anotheria.maf.action
Class ActionMappings

java.lang.Object
  extended by net.anotheria.maf.action.ActionMappings

public final class ActionMappings
extends Object

Configuration of the Framework. This class contains all mappings the framework will react on.

Author:
another

Constructor Summary
ActionMappings()
           
 
Method Summary
 void addAlias(String sourcePath, String targetPath)
          Adds an alias.
 void addForward(String actionPath, String forwardPath)
           
 void addMapping(String path, Class<? extends Action> type, ActionCommand... commands)
          Adds a mapping.
 void addMapping(String path, Class<? extends Action> type, ActionForward... forwards)
          Adds an 1.0 style mapping.
 void addMapping(String path, String type, ActionCommand... commands)
          Adds a mapping.
 void addMapping(String path, String type, ActionForward... forwards)
          Adds a mapping.
 ActionMapping findMapping(String actionPath)
           
 Map<String,String> getAliases()
           
 Map<String,ActionMapping> getMappings()
           
 ActionCommand getOnError()
           
 ActionCommand getOnNotFound()
           
 void setOnError(ActionCommand onError)
           
 void setOnNotFound(ActionCommand onNotFound)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActionMappings

public ActionMappings()
Method Detail

addMapping

public void addMapping(String path,
                       String type,
                       ActionCommand... commands)
Adds a mapping.

Parameters:
path -
type -
commands -

addMapping

public void addMapping(String path,
                       String type,
                       ActionForward... forwards)
Adds a mapping.

Parameters:
path -
type -
forwards -

addForward

public void addForward(String actionPath,
                       String forwardPath)

addMapping

public void addMapping(String path,
                       Class<? extends Action> type,
                       ActionCommand... commands)
Adds a mapping.

Parameters:
path -
type -
commands -

addMapping

public void addMapping(String path,
                       Class<? extends Action> type,
                       ActionForward... forwards)
Adds an 1.0 style mapping.

Parameters:
path -
type -
forwards -

addAlias

public void addAlias(String sourcePath,
                     String targetPath)
Adds an alias.

Parameters:
sourcePath -
targetPath -

findMapping

public ActionMapping findMapping(String actionPath)

getAliases

public Map<String,String> getAliases()

getMappings

public Map<String,ActionMapping> getMappings()

getOnError

public ActionCommand getOnError()

setOnError

public void setOnError(ActionCommand onError)

getOnNotFound

public ActionCommand getOnNotFound()

setOnNotFound

public void setOnNotFound(ActionCommand onNotFound)


Copyright © 2010-2013 anotheria.net. All Rights Reserved.