org.directwebremoting.spring
Class AbstractConfig

java.lang.Object
  extended by org.directwebremoting.spring.AbstractConfig
Direct Known Subclasses:
ConverterConfig, CreatorConfig

public class AbstractConfig
extends java.lang.Object

The abstract config to use to configure parts of DWR in Spring.

Author:
Bram Smeets, Joe Walker [joe at getahead dot ltd dot uk], Brendan Grainger
See Also:
AccessControl.addIncludeRule(String, String), AccessControl.addExcludeRule(String, String)

Constructor Summary
AbstractConfig()
           
 
Method Summary
 void addExclude(java.lang.String method)
          Convenience method for adding an exclude rule.
 void addInclude(java.lang.String method)
          Convenience method for adding an include rule.
 java.util.List<java.lang.String> getExcludes()
          Gets the list of method names to exclude for this creator.
 java.util.List<java.lang.String> getIncludes()
          Gets the list of method names to include for this creator.
 java.util.Map<java.lang.String,java.lang.String> 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 setExcludes(java.util.List<java.lang.String> excludes)
          Sets the list of method names to exclude for this creator.
 void setIncludes(java.util.List<java.lang.String> includes)
          Sets the list of method names to include for this creator.
 void setParams(java.util.Map<java.lang.String,java.lang.String> 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

AbstractConfig

public AbstractConfig()
Method Detail

getIncludes

public java.util.List<java.lang.String> getIncludes()
Gets the list of method names to include for this creator.

Returns:
the list of method names to include
See Also:
AccessControl.addIncludeRule(String, String)

setIncludes

public void setIncludes(java.util.List<java.lang.String> includes)
Sets the list of method names to include for this creator.

Parameters:
includes - the list of method names to include
See Also:
AccessControl.addIncludeRule(String, String)

getExcludes

public java.util.List<java.lang.String> getExcludes()
Gets the list of method names to exclude for this creator.

Returns:
the list of method names to exclude
See Also:
AccessControl.addExcludeRule(String, String)

setExcludes

public void setExcludes(java.util.List<java.lang.String> excludes)
Sets the list of method names to exclude for this creator.

Parameters:
excludes - the list of method names to exclude
See Also:
AccessControl.addExcludeRule(String, String)

addInclude

public void addInclude(java.lang.String method)
Convenience method for adding an include rule.

Parameters:
method - the method to add the include rule for
Throws:
java.lang.IllegalArgumentException - in case the specified argument is null

addExclude

public void addExclude(java.lang.String method)
Convenience method for adding an exclude rule.

Parameters:
method - the method to add the exclude rule
Throws:
java.lang.IllegalArgumentException - in case the specified argument is null

getParams

public java.util.Map<java.lang.String,java.lang.String> 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.

Returns:
Returns the params.

setParams

public void setParams(java.util.Map<java.lang.String,java.lang.String> 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.

Parameters:
params - The params to set.

Copyright 2008