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.
- Author:
- Joe Walnes
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
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
The page.- See Also:
-
name
The name.- See Also:
-
uriPath
The uri path.- See Also:
-
role
The role.- See Also:
-
parameters
The parameters.- See Also:
-
-
Constructor Details
-
DefaultDecorator
Constructor to set name, page and parameters.- Parameters:
name- the namepage- the pageparameters- the parameters
-
DefaultDecorator
Constructor to set all properties.- Parameters:
name- the namepage- the pageuriPath- the uri pathparameters- the parameters
-
DefaultDecorator
public DefaultDecorator(String name, String page, String uriPath, String role, Map<Object, Object> parameters) Constructor to set all properties.- Parameters:
name- the namepage- the pageuriPath- the uri pathrole- the roleparameters- the parameters
-
-
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:
getURIPathin interfaceDecorator- Returns:
- the URI path
-
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:
getInitParameterin 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:
getInitParameterNamesin interfaceDecorator- Returns:
- the inits the parameter names
-