com.sitemesh.mapper
Class DefaultDecorator

java.lang.Object
  |
  +--com.sitemesh.mapper.DefaultDecorator

public class DefaultDecorator
extends java.lang.Object
implements Decorator

Default implementation of Decorator. All properties are set by the constructor.

Version:
$Revision: 1.5 $
Author:
Joe Walnes
See Also:
Decorator, DefaultDecoratorMapper

Field Summary
protected  java.lang.String name
           
protected  java.lang.String page
           
protected  java.util.Map parameters
           
 
Constructor Summary
DefaultDecorator(java.lang.String name, java.lang.String page, java.util.Map parameters)
          Constructor to set all properties.
 
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).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

page

protected java.lang.String page
See Also:
getPage()

name

protected java.lang.String name
See Also:
getName()

parameters

protected java.util.Map parameters
See Also:
getInitParam(java.lang.String)
Constructor Detail

DefaultDecorator

public DefaultDecorator(java.lang.String name,
                        java.lang.String page,
                        java.util.Map parameters)
Constructor to set all properties.
Method Detail

getPage

public java.lang.String getPage()
URI of Servlet/JSP to dispatch request to (relative to web-app context).
Specified by:
getPage in interface Decorator

getName

public java.lang.String getName()
Name of Decorator. For information purposes only.
Specified by:
getName in interface Decorator

getInitParam

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