jodd.madvoc
Class ActionConfigSet

java.lang.Object
  extended by jodd.madvoc.ActionConfigSet
All Implemented Interfaces:
java.lang.Comparable<ActionConfigSet>

public class ActionConfigSet
extends java.lang.Object
implements java.lang.Comparable<ActionConfigSet>

Set of action configs with the same action path but with different http method.


Nested Class Summary
static class ActionConfigSet.PathMacro
           
 
Field Summary
 java.lang.String actionPath
           
 java.lang.String[] actionPathChunks
           
 ActionConfigSet.PathMacro[] actionPathMacros
           
protected  ActionConfig[] configs
           
 
Constructor Summary
ActionConfigSet(java.lang.String actionPath)
           
 
Method Summary
 boolean add(ActionConfig cfg)
          Adds action configuration.
 int compareTo(ActionConfigSet set)
           
 java.util.List<ActionConfig> getActionConfigs()
          Returns a new list of all action configs from this set.
 ActionConfig lookup(java.lang.String method)
          Lookup for action config for given method.
protected  int lookupIndex(java.lang.String method)
           
protected  ActionConfigSet.PathMacro[] resolveMacros(java.lang.String[] chunks)
          Finds the best matching macro.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

configs

protected ActionConfig[] configs

actionPath

public final java.lang.String actionPath

actionPathChunks

public final java.lang.String[] actionPathChunks

actionPathMacros

public final ActionConfigSet.PathMacro[] actionPathMacros
Constructor Detail

ActionConfigSet

public ActionConfigSet(java.lang.String actionPath)
Method Detail

getActionConfigs

public java.util.List<ActionConfig> getActionConfigs()
Returns a new list of all action configs from this set.


add

public boolean add(ActionConfig cfg)
Adds action configuration. Returns true if new configuration replaces existing one.


lookup

public ActionConfig lookup(java.lang.String method)
Lookup for action config for given method.


lookupIndex

protected int lookupIndex(java.lang.String method)

compareTo

public int compareTo(ActionConfigSet set)
Specified by:
compareTo in interface java.lang.Comparable<ActionConfigSet>

resolveMacros

protected ActionConfigSet.PathMacro[] resolveMacros(java.lang.String[] chunks)
Finds the best matching macro.



Copyright © 2003-2012 Jodd Team