|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mmbase.util.functions.FunctionProvider
org.mmbase.module.core.MMTable
org.mmbase.module.core.MMObjectBuilder
org.mmbase.module.builders.Jumpers
Maintains jumpers for redirecting urls. The data stored in this builder is
used to redirect urls based ons a specific key. The jumpers builder is called
from the JumpersFilter.
The jumpers builder can be configured using two properties:
JumperCacheSize determines the size of the jumper cache
(in nr of items). The default size is 1000.JumperNotFoundURL Determines the default url (such as a
home page or error page) when no jumper is found. If not specified nothing
will be done if no jumper is found.
| Field Summary | |
protected org.mmbase.module.builders.JumpersCache |
jumpCache
Cache for URL jumpers. |
protected static String |
jumperNotFoundURL
Default redirect if no jumper can be found. |
| Fields inherited from class org.mmbase.module.core.MMObjectBuilder |
AGE_PARAMETERS, broadCastChanges, DEFAULT_ALINEA, DEFAULT_EOL, description, descriptions, EVENT_TYPE_LOCAL, EVENT_TYPE_REMOTE, FIELD_NUMBER, FIELD_OBJECT_TYPE, FIELD_OWNER, fields, genericBlobCache, getFunctions, GUI_PARAMETERS, guiFunction, infoFunction, internalVersion, nodeCache, oType, searchAge, SYSTEM_OWNER, TEMPNODE_DEFAULT_SIZE, temporaryNodes, TMP_FIELD_NUMBER, virtual, WRAP_PARAMETERS, wrapFunction |
| Fields inherited from class org.mmbase.module.core.MMTable |
maxNodesFromQuery, mmb, storageConnector, tableName |
| Fields inherited from class org.mmbase.util.functions.FunctionProvider |
functions |
| Constructor Summary | |
Jumpers()
|
|
| Method Summary | |
void |
delJumpCache(String key)
Removes a specified key from the cache. |
protected Object |
executeFunction(MMObjectNode node,
String function,
List arguments)
Executes a function on the field of a node, and returns the result. |
protected String |
getGUIIndicator(MMObjectNode node,
Parameters args)
A complicated default implementation for GUI. |
String |
getJump(String key)
Retrieves a jumper for a specified key. |
String |
getJump(StringTokenizer tok)
Retrieves a jumper for a specified key. |
boolean |
init()
Initializes the builder. |
void |
notify(NodeEvent event)
|
| Methods inherited from class org.mmbase.module.core.MMTable |
count, count, created, getFullTableName, getMMBase, getNode, getNodes, getNodes, getNodes, getNodeType, getStorageConnector, getTableName, search, searchVector, setMMBase, setTableName, size |
| Methods inherited from class org.mmbase.util.functions.FunctionProvider |
addFunction, createParameters, getFunction, getFunctions, getFunctionValue |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected org.mmbase.module.builders.JumpersCache jumpCache
protected static String jumperNotFoundURL
null, a url will not be 'redirected' if the search for a
jumper failed. This may cause a 404 error on your server if the path
specified is unavailable. However, you may need it if other servlets rely
on specific paths that would otherwise be caught by the jumper servlet.
The value fo this field is set using the JumperNotFoundURL
property in the builder configuration file.
| Constructor Detail |
public Jumpers()
| Method Detail |
public boolean init()
init in class MMObjectBuildertrueMMObjectBuilder.create()
protected String getGUIIndicator(MMObjectNode node,
Parameters args)
MMObjectBuilder
getGUIIndicator in class MMObjectBuilderpublic String getJump(StringTokenizer tok)
tok - teh tokenizer, in which the first token is the key to search
for.
public void delJumpCache(String key)
key - the key to removepublic String getJump(String key)
key - the key to search for.
public void notify(NodeEvent event)
notify in interface NodeEventListenernotify in class MMObjectBuilderhere we handle all the backward compatibility stuff.
this method covers for both node and relation events.
protected Object executeFunction(MMObjectNode node,
String function,
List arguments)
MMObjectBuilderMMObjectBuilder.getValue(org.mmbase.module.core.MMObjectNode, java.lang.String) method.
Derived builders should override this method to provide additional functions.
executeFunction in class MMObjectBuilderMMObjectBuilder.executeFunction(org.mmbase.module.core.MMObjectNode, java.lang.String, java.util.List)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||