Save This Page
Home » sitemesh-2.3 » com.opensymphony.module » sitemesh » mapper » [javadoc | source]
com.opensymphony.module.sitemesh.mapper
public class: CookieDecoratorMapper [javadoc | source]
java.lang.Object
   com.opensymphony.module.sitemesh.mapper.AbstractDecoratorMapper
      com.opensymphony.module.sitemesh.mapper.CookieDecoratorMapper

All Implemented Interfaces:
    DecoratorMapper

The CookieDecoratorMapper will map a suitable decorator based on a cookie value.

The CookieDecoratorMapper is configured via one properties. cookie.name - the cookie which contains the name of the decorator which will be mapped.

Fields inherited from com.opensymphony.module.sitemesh.mapper.AbstractDecoratorMapper:
parent,  config
Method from com.opensymphony.module.sitemesh.mapper.CookieDecoratorMapper Summary:
getDecorator,   init
Methods from com.opensymphony.module.sitemesh.mapper.AbstractDecoratorMapper:
getDecorator,   getNamedDecorator,   init
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from com.opensymphony.module.sitemesh.mapper.CookieDecoratorMapper Detail:
 public Decorator getDecorator(HttpServletRequest request,
    Page page) 
 public  void init(Config config,
    Properties properties,
    DecoratorMapper parent) throws InstantiationException