|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.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 servjumpers servlet.
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 java.lang.String |
jumperNotFoundURL
Default redirect if no jumper can be found. |
| Fields inherited from class org.mmbase.module.core.MMObjectBuilder |
AGE_PARAMETERS, broadcastChanges, database, DEFAULT_ALINEA, DEFAULT_EOL, description, descriptions, fields, GUI_PARAMETERS, listCache, nodeCache, OBJ2TYPE_MAX_SIZE, oType, REPLACE_CACHE, searchAge, sortedDBLayout, TEMPNODE_DEFAULT_SIZE, TemporaryNodes, virtual |
| Fields inherited from class org.mmbase.module.core.MMTable |
mmb, tableName |
| Constructor Summary | |
Jumpers()
|
|
| Method Summary | |
void |
delJumpCache(java.lang.String key)
Removes a specified key from the cache. |
protected java.lang.Object |
executeFunction(MMObjectNode node,
java.lang.String function,
java.util.List arguments)
Executes a function on the field of a node, and returns the result. |
protected java.lang.String |
getGUIIndicator(MMObjectNode node,
Parameters args)
|
java.lang.String |
getJump(java.lang.String key)
Retrieves a jumper for a specified key. |
java.lang.String |
getJump(java.util.StringTokenizer tok)
Retrieves a jumper for a specified key. |
protected java.lang.String |
getJumpByField(java.lang.String fieldName,
java.lang.String key)
|
boolean |
init()
Initializes the builder. |
boolean |
nodeChanged(java.lang.String machine,
java.lang.String number,
java.lang.String builder,
java.lang.String ctype)
Clears the jump cache if a jumper was added, removed, or changed. |
boolean |
nodeLocalChanged(java.lang.String machine,
java.lang.String number,
java.lang.String builder,
java.lang.String ctype)
Handles changes made to a node by this server. |
boolean |
nodeRemoteChanged(java.lang.String machine,
java.lang.String number,
java.lang.String builder,
java.lang.String ctype)
Handles changes made to a node by a remote server. |
| Methods inherited from class org.mmbase.module.core.MMTable |
created, getFullTableName, getTableName, size |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected org.mmbase.module.builders.JumpersCache jumpCache
protected static java.lang.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 java.lang.String getGUIIndicator(MMObjectNode node,
Parameters args)
public java.lang.String getJump(java.util.StringTokenizer tok)
tok - teh tokenizer, in which the first token is the key to search for.
public void delJumpCache(java.lang.String key)
key - the key to remove
protected java.lang.String getJumpByField(java.lang.String fieldName,
java.lang.String key)
public java.lang.String getJump(java.lang.String key)
key - the key to search for.
public boolean nodeRemoteChanged(java.lang.String machine,
java.lang.String number,
java.lang.String builder,
java.lang.String ctype)
nodeRemoteChanged in class MMObjectBuildermachine - Name of the machine that changed the node.number - the number of the node that was added, removed, or changed.builder - the name of the builder of the changed node (should be 'jumpers')ctype - the type of change
true
public boolean nodeLocalChanged(java.lang.String machine,
java.lang.String number,
java.lang.String builder,
java.lang.String ctype)
nodeLocalChanged in class MMObjectBuildermachine - Name of the machine that changed the node.number - the number of the node that was added, removed, or changed.builder - the name of the builder of the changed node (should be 'jumpers')ctype - the type of change
true
public boolean nodeChanged(java.lang.String machine,
java.lang.String number,
java.lang.String builder,
java.lang.String ctype)
machine - Name of the machine that changed the node.number - the number of the node that was added, removed, or changed.builder - the name of the builder of the changed node (should be 'jumpers')ctype - the type of change
protected java.lang.Object executeFunction(MMObjectNode node,
java.lang.String function,
java.util.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 | ||||||||