com.sitemesh
Interface Decorator

All Known Implementing Classes:
DefaultDecorator

public interface Decorator

Representation of a Decorator. A Decorator is infact a Servlet/JSP, and this is a wrapper to reference it. An implementation is returned by the DecoratorMapper.

Version:
$Revision: 1.8 $
Author:
Joe Walnes

Method Summary
 java.lang.String getInitParam(java.lang.String paramName)
          Return init parameter of Decorator.
 java.lang.String getName()
          Name of Decorator.
 java.lang.String getPage()
          URI of Servlet/JSP to dispatch request to (relative to web-app context).
 

Method Detail

getPage

public java.lang.String getPage()
URI of Servlet/JSP to dispatch request to (relative to web-app context).

getName

public java.lang.String getName()
Name of Decorator. For information purposes only.

getInitParam

public java.lang.String getInitParam(java.lang.String paramName)
Return init parameter of Decorator.
Parameters:
paramName - Key of parameter.
Returns:
Value of parameter or null if not found.