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