Liferay 6.2.0-ce-m1

com.liferay.portal.kernel.bean
Class AutoEscapeBeanHandler

java.lang.Object
  extended by com.liferay.portal.kernel.bean.AutoEscapeBeanHandler
All Implemented Interfaces:
Serializable, InvocationHandler

public class AutoEscapeBeanHandler
extends Object
implements InvocationHandler, Serializable

Wraps a bean so that all strings returned from @AutoEscape annotated methods are automatically HTML escaped.

For a usage example see ShoppingUtil.getBreadcrumbs .

See Also:
AutoEscape, Serialized Form

Constructor Summary
AutoEscapeBeanHandler(BaseModel<?> baseModel)
           
 
Method Summary
 Object getBean()
           
 Object invoke(Object proxy, Method method, Object[] arguments)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AutoEscapeBeanHandler

public AutoEscapeBeanHandler(BaseModel<?> baseModel)
Method Detail

getBean

public Object getBean()

invoke

public Object invoke(Object proxy,
                     Method method,
                     Object[] arguments)
              throws Throwable
Specified by:
invoke in interface InvocationHandler
Throws:
Throwable

Liferay 6.2.0-ce-m1