Class DefaultDecorator
java.lang.Object
com.opensymphony.module.sitemesh.mapper.DefaultDecorator
- All Implemented Interfaces:
Decorator
Default implementation of Decorator. All properties are set by the
constructor.
- Version:
- $Revision: 1.1 $
- Author:
- Joe Walnes
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionConstructor to set all properties.DefaultDecorator
(String name, String page, String uriPath, Map parameters) Constructor to set all properties.DefaultDecorator
(String name, String page, Map parameters) Constructor to set name, page and parameters. -
Method Summary
Modifier and TypeMethodDescriptiongetInitParameter
(String paramName) Returns a String containing the value of the named initialization parameter, or null if the parameter does not exist.Returns the names of the Decorator's initialization parameters as an Iterator of String objects, or an empty Iterator if the Decorator has no initialization parameters.getName()
Name of Decorator.getPage()
URI of the Servlet/JSP to dispatch the request to (relative to the web-app context).getRole()
Role the user has to be in to get this decorator applied.URI path of the Decorator.
-
Field Details
-
page
- See Also:
-
name
- See Also:
-
uriPath
- See Also:
-
role
- See Also:
-
parameters
- See Also:
-
-
Constructor Details
-
DefaultDecorator
Constructor to set name, page and parameters. -
DefaultDecorator
Constructor to set all properties. -
DefaultDecorator
Constructor to set all properties.
-
-
Method Details
-
getPage
URI of the Servlet/JSP to dispatch the request to (relative to the web-app context). -
getName
Name of Decorator. For information purposes only. -
getURIPath
URI path of the Decorator. Enables support for decorators defined in seperate web-apps.- Specified by:
getURIPath
in interfaceDecorator
-
getRole
Role the user has to be in to get this decorator applied. -
getInitParameter
Returns a String containing the value of the named initialization parameter, or null if the parameter does not exist.- Specified by:
getInitParameter
in interfaceDecorator
- Parameters:
paramName
- Key of parameter.- Returns:
- Value of parameter or null if not found.
-
getInitParameterNames
Returns the names of the Decorator's initialization parameters as an Iterator of String objects, or an empty Iterator if the Decorator has no initialization parameters.- Specified by:
getInitParameterNames
in interfaceDecorator
-