Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.sitemesh
Interface DecoratorMapper  view DecoratorMapper download DecoratorMapper.java


public interface DecoratorMapper

The DecoratorMapper is resposible for determining which Decorator should be used for a Page . Implementations of this are returned by Factory . All implementations of this should be thread safe.

Version:
$Revision: 1.8 $

Method Summary
 Decorator getDecorator(javax.servlet.http.HttpServletRequest request, Page page)
          Return appropriate Decorator for a certain Page.
 void init(Config config, java.util.Properties properties)
          Initialize the mapper.
 

Method Detail

init

public void init(Config config,
                 java.util.Properties properties)
          throws java.lang.InstantiationException
Initialize the mapper. This is always called before the other method.


getDecorator

public Decorator getDecorator(javax.servlet.http.HttpServletRequest request,
                              Page page)
Return appropriate Decorator for a certain Page. The implementation can determine the result based on the actual request or the data of the parsed page.