org.apache.beehive.netui.tags.naming
Class PrefixNameInterceptor

Object
  extended by PrefixNameInterceptor
All Implemented Interfaces:
INameInterceptor

public class PrefixNameInterceptor
extends Object
implements INameInterceptor

A INameInterceptor that is used to add a prefix handler onto a NetUI tag that is being written to the client. Occasionally, NetUI tags need to be pre-processed before passing the name and value to the ProcessPopulate handler in order to update a bean property. This preprocessing is done by implementing a handler implementing the interface RequestParameterHandler, registering this interface with the ProcessPopulate.registerPrefixHandler(String, org.apache.beehive.netui.pageflow.RequestParameterHandler) method, and adding a prefix which references this RequestParameterHandler to the name of each paramter that should be handled by the implementation before updating the bean property.


Constructor Summary
protected PrefixNameInterceptor()
           
  PrefixNameInterceptor(String key)
           
 
Method Summary
 String rewriteName(String name, Tag currentTag)
           
protected  String rewriteNameInternal(String name, String key)
           
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PrefixNameInterceptor

public PrefixNameInterceptor(String key)

PrefixNameInterceptor

protected PrefixNameInterceptor()
Method Detail

rewriteName

public String rewriteName(String name,
                          Tag currentTag)
                   throws ExpressionEvaluationException
Specified by:
rewriteName in interface INameInterceptor
Returns:
String
Throws:
ExpressionEvaluationException

rewriteNameInternal

protected String rewriteNameInternal(String name,
                                     String key)
                              throws ExpressionEvaluationException
Throws:
ExpressionEvaluationException