|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.directwebremoting.spring.CreatorConfig
public class CreatorConfig
The configuration for a creator.
You can either specify the creator directly or specify one of the build in creator types,
for instance "new".
It allows the specification of the following optional configuration parameters:
Properties object containing method names and corresponding
required role
AccessControl.addIncludeRule(String, String),
AccessControl.addExcludeRule(String, String),
AccessControl.addRoleRestriction(String, String, String),
AjaxFilter,
AjaxFilterManager.addAjaxFilter(org.directwebremoting.AjaxFilter, String)| Constructor Summary | |
|---|---|
CreatorConfig()
|
|
| Method Summary | |
|---|---|
void |
addAuth(java.lang.String method,
java.lang.String role)
Convenience method for adding an authentication rule. |
void |
addExclude(java.lang.String method)
Convenience method for adding an exclude rule. |
void |
addFilter(AjaxFilter filter)
Convenience method for adding a filter. |
void |
addInclude(java.lang.String method)
Convenience method for adding an include rule. |
java.util.Properties |
getAuth()
Sets the authentication parameters for this creator. |
Creator |
getCreator()
The creator that will be used to create new objects for remoting |
java.lang.String |
getCreatorType()
The creator type that will be used to create new objects for remoting |
java.util.List |
getExcludes()
Gets the list of method names to exclude for this creator. |
java.util.List |
getFilters()
Gets the list of all filters for this creator. |
java.util.List |
getIncludes()
Gets the list of method names to include for this creator. |
java.util.Map |
getParams()
The set of key/value pairs to provide further configuration. Note that these params are only used when setting the creator type and not when setting the creator directly. |
void |
setAuth(java.util.Properties auth)
Sets the authentication parameters for this creator. |
void |
setCreator(Creator creator)
The creator type that will be used to create new objects for remoting |
void |
setCreatorType(java.lang.String creatorType)
The creator that will be used to create new objects for remoting |
void |
setExcludes(java.util.List excludes)
Sets the list of method names to exclude for this creator. |
void |
setFilters(java.util.List filters)
Sets the list of all filters for this creator. |
void |
setIncludes(java.util.List includes)
Sets the list of method names to include for this creator. |
void |
setParams(java.util.Map params)
The set of key/value pairs to provide further configuration. Note that these params are only used when setting the creator type and not when setting the creator directly. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CreatorConfig()
| Method Detail |
|---|
public java.lang.String getCreatorType()
public void setCreatorType(java.lang.String creatorType)
creatorType - The creator type to set.public Creator getCreator()
public void setCreator(Creator creator)
creator - The creator to set.public java.util.Properties getAuth()
AccessControl.addRoleRestriction(String, String, String)public void setAuth(java.util.Properties auth)
auth - the map containing the method name and the corrosponding required roleAccessControl.addRoleRestriction(String, String, String)public java.util.List getFilters()
AjaxFilter,
AjaxFilterManager.addAjaxFilter(org.directwebremoting.AjaxFilter, String)public void setFilters(java.util.List filters)
filters - the list containing all filtersAjaxFilter,
AjaxFilterManager.addAjaxFilter(org.directwebremoting.AjaxFilter, String)
public void addAuth(java.lang.String method,
java.lang.String role)
method - the method to add the authentication rulerole - the role to add the authentication constraint for
java.lang.IllegalArgumentException - in case the specified argument is nullpublic void addFilter(AjaxFilter filter)
filter - the filter to add for this creator
java.lang.IllegalArgumentException - in case the specified argument is nullpublic java.util.List getIncludes()
AccessControl.addIncludeRule(String, String)public void setIncludes(java.util.List includes)
includes - the list of method names to includeAccessControl.addIncludeRule(String, String)public java.util.List getExcludes()
AccessControl.addExcludeRule(String, String)public void setExcludes(java.util.List excludes)
excludes - the list of method names to excludeAccessControl.addExcludeRule(String, String)public void addInclude(java.lang.String method)
method - the method to add the include rule for
java.lang.IllegalArgumentException - in case the specified argument is nullpublic void addExclude(java.lang.String method)
method - the method to add the exclude rule
java.lang.IllegalArgumentException - in case the specified argument is nullpublic java.util.Map getParams()
public void setParams(java.util.Map params)
params - The params to set.
|
Copyright ¬ 2005 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||