|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ActionMappingRepository
Repository of all configured ActionMapping
instances.
Method Summary | |
---|---|
void |
addActionMapping(ActionMapping mapping)
|
ActionMapping |
getActionMappingByClass(java.lang.Class<? extends Action> actionClass)
|
ActionMapping |
getActionMappingByName(java.lang.String actionClassName)
|
Event |
getEvent(java.lang.String uri,
LoomServletRequest request)
|
java.lang.String |
getHandle(java.lang.String uri)
|
java.util.Collection<java.lang.String> |
getMappings()
|
ActionMapping |
removeActionMapping(java.lang.Class<? extends Action> actionClass)
Remove the action mapping for one action class |
void |
validateActionMappings()
Validate the registered ActionMappings to check that there are no two overlapping events that may produce the same URL |
Method Detail |
---|
java.util.Collection<java.lang.String> getMappings()
java.lang.String getHandle(java.lang.String uri)
void addActionMapping(ActionMapping mapping)
ActionMapping getActionMappingByClass(java.lang.Class<? extends Action> actionClass)
actionClass
- the action class
java.lang.IllegalArgumentException
- if there is no action registered with that class nameActionMapping getActionMappingByName(java.lang.String actionClassName)
actionClassName
- the class name OR the unqualified class name (without the package path)
java.lang.IllegalArgumentException
- if there is no action registered with that class nameEvent getEvent(java.lang.String uri, LoomServletRequest request)
uri
- the uri as returned by request.getServletPath()request
- the current request object
ActionMapping removeActionMapping(java.lang.Class<? extends Action> actionClass)
actionClass
- the action class to be removed
void validateActionMappings()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |