public class DefaultDecorator extends Object implements Decorator
Decorator| Modifier and Type | Field and Description |
|---|---|
protected String |
name |
protected String |
page |
protected Map |
parameters |
protected String |
role |
protected String |
uriPath |
| Constructor and Description |
|---|
DefaultDecorator(String name,
String page,
Map parameters)
Constructor to set name, page and parameters.
|
DefaultDecorator(String name,
String page,
String uriPath,
Map parameters)
Constructor to set all properties.
|
DefaultDecorator(String name,
String page,
String uriPath,
String role,
Map parameters)
Constructor to set all properties.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getInitParameter(String paramName)
Returns a String containing the value of the named initialization parameter,
or null if the parameter does not exist.
|
Iterator |
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.
|
String |
getName()
Name of Decorator.
|
String |
getPage()
URI of the Servlet/JSP to dispatch the request to (relative to the
web-app context).
|
String |
getRole()
Role the user has to be in to get this decorator applied.
|
String |
getURIPath()
URI path of the Decorator.
|
protected String uriPath
getURIPath()protected Map parameters
getInitParameter(java.lang.String)public DefaultDecorator(String name, String page, Map parameters)
public DefaultDecorator(String name, String page, String uriPath, Map parameters)
public String getPage()
public String getName()
public String getURIPath()
getURIPath in interface Decoratorpublic String getRole()
public String getInitParameter(String paramName)
getInitParameter in interface DecoratorparamName - Key of parameter.public Iterator getInitParameterNames()
getInitParameterNames in interface Decorator