BEA NetUI tags and APIs are included for backward compatibility only. For new applications, use the Beehive tags and APIs.

com.bea.wlw.netui.tags.naming
Class PrefixNameInterceptor

java.lang.Object
  extended by com.bea.wlw.netui.tags.naming.PrefixNameInterceptor
All Implemented Interfaces:
NameInterceptor

public class PrefixNameInterceptor
extends Object
implements NameInterceptor

A NameInterceptor 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 RequestParamterHandler, registering this interface with the org.apache.beehive.netui.pageflow.ProcessPopulate#registerPrefixHandler(String, RequestParamterHandler) 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.

Exclude:

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

Constructor Detail

PrefixNameInterceptor

public PrefixNameInterceptor(String key)
Method Detail

rewriteName

public String rewriteName(String name)
                   throws ExpressionEvaluationException
Specified by:
rewriteName in interface NameInterceptor
Throws:
ExpressionEvaluationException

rewriteNameInternal

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

BEA NetUI tags and APIs are included for backward compatibility only. For new applications, use the Beehive tags and APIs.