com.oroad.stxx.transform.document
Class BuilderRulesImpl

java.lang.Object
  extended bycom.oroad.stxx.transform.document.BuilderRulesImpl
All Implemented Interfaces:
BuilderRules

public class BuilderRulesImpl
extends java.lang.Object
implements BuilderRules

Default implementation of BuilderRules.

Author:
Don Brown

Field Summary
protected static java.lang.String ATTRIBUTES_BASE
          Base for request attribute properties
protected  org.apache.oro.text.regex.Pattern attributesExclude
          Regular expressions for attribute rules
protected  org.apache.oro.text.regex.Pattern attributesIgnore
          Regular expressions for attribute rules
protected  org.apache.oro.text.regex.Pattern attributesInclude
          Regular expressions for attribute rules
protected static java.lang.String ERRORS_BASE
          Base for errors properties
protected  org.apache.oro.text.regex.Pattern errorsExclude
          Regular expressions for error rules
protected  org.apache.oro.text.regex.Pattern errorsInclude
          Regular expressions for error rules
protected static java.lang.String FORM_BASE
          Base for ActionForm properties
protected  org.apache.oro.text.regex.Pattern formExclude
          Regular expressions for form rules
protected  org.apache.oro.text.regex.Pattern formInclude
          Regular expressions for form rules
protected static org.apache.commons.logging.Log log
          The logging instance
protected static java.lang.String MESSAGES_BASE
          Base for action message properties
protected  org.apache.oro.text.regex.Pattern messagesExclude
          Regular expressions for action messages rules
protected  org.apache.oro.text.regex.Pattern messagesInclude
          Regular expressions for action messages rules
protected static java.lang.String PARAMETERS_BASE
          Base for request parameter properties
protected  org.apache.oro.text.regex.Pattern parametersExclude
          Regular expressions for parameters rules
protected  org.apache.oro.text.regex.Pattern parametersIgnore
          Regular expressions for parameters rules
protected  org.apache.oro.text.regex.Pattern parametersInclude
          Regular expressions for parameters rules
protected static java.lang.String RESOURCES_BASE
          Base for resource properties
protected  org.apache.oro.text.regex.Pattern resourcesExclude
          Regular expressions for resources rules
protected  org.apache.oro.text.regex.Pattern resourcesInclude
          Regular expressions for resources rules
 
Fields inherited from interface com.oroad.stxx.transform.document.BuilderRules
ATTRIBUTES_TYPE, ERRORS_TYPE, FORM_TYPE, MESSAGES_TYPE, PARAMETERS_TYPE, RESOURCES_TYPE
 
Constructor Summary
BuilderRulesImpl()
           
 
Method Summary
 boolean allowItem(int type, java.lang.String item, javax.servlet.http.HttpServletRequest req)
          Tells whether the item should be included
 boolean allowType(int type, javax.servlet.http.HttpServletRequest request)
          Tells whether the specified type of information should be included
 void init(StxxProperties props)
          Initializes the rules
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ERRORS_BASE

protected static final java.lang.String ERRORS_BASE
Base for errors properties

See Also:
Constant Field Values

RESOURCES_BASE

protected static final java.lang.String RESOURCES_BASE
Base for resource properties

See Also:
Constant Field Values

PARAMETERS_BASE

protected static final java.lang.String PARAMETERS_BASE
Base for request parameter properties

See Also:
Constant Field Values

ATTRIBUTES_BASE

protected static final java.lang.String ATTRIBUTES_BASE
Base for request attribute properties

See Also:
Constant Field Values

FORM_BASE

protected static final java.lang.String FORM_BASE
Base for ActionForm properties

See Also:
Constant Field Values

MESSAGES_BASE

protected static final java.lang.String MESSAGES_BASE
Base for action message properties

See Also:
Constant Field Values

errorsInclude

protected org.apache.oro.text.regex.Pattern errorsInclude
Regular expressions for error rules


errorsExclude

protected org.apache.oro.text.regex.Pattern errorsExclude
Regular expressions for error rules


resourcesInclude

protected org.apache.oro.text.regex.Pattern resourcesInclude
Regular expressions for resources rules


resourcesExclude

protected org.apache.oro.text.regex.Pattern resourcesExclude
Regular expressions for resources rules


parametersInclude

protected org.apache.oro.text.regex.Pattern parametersInclude
Regular expressions for parameters rules


parametersExclude

protected org.apache.oro.text.regex.Pattern parametersExclude
Regular expressions for parameters rules


parametersIgnore

protected org.apache.oro.text.regex.Pattern parametersIgnore
Regular expressions for parameters rules


attributesInclude

protected org.apache.oro.text.regex.Pattern attributesInclude
Regular expressions for attribute rules


attributesExclude

protected org.apache.oro.text.regex.Pattern attributesExclude
Regular expressions for attribute rules


attributesIgnore

protected org.apache.oro.text.regex.Pattern attributesIgnore
Regular expressions for attribute rules


formInclude

protected org.apache.oro.text.regex.Pattern formInclude
Regular expressions for form rules


formExclude

protected org.apache.oro.text.regex.Pattern formExclude
Regular expressions for form rules


messagesInclude

protected org.apache.oro.text.regex.Pattern messagesInclude
Regular expressions for action messages rules


messagesExclude

protected org.apache.oro.text.regex.Pattern messagesExclude
Regular expressions for action messages rules


log

protected static org.apache.commons.logging.Log log
The logging instance

Constructor Detail

BuilderRulesImpl

public BuilderRulesImpl()
Method Detail

init

public void init(StxxProperties props)
Initializes the rules

Specified by:
init in interface BuilderRules
Parameters:
props - The properties

allowType

public boolean allowType(int type,
                         javax.servlet.http.HttpServletRequest request)
Tells whether the specified type of information should be included

Specified by:
allowType in interface BuilderRules
Parameters:
type - The type of information
request - The request
Returns:
True if allowed

allowItem

public boolean allowItem(int type,
                         java.lang.String item,
                         javax.servlet.http.HttpServletRequest req)
Tells whether the item should be included

Specified by:
allowItem in interface BuilderRules
Parameters:
type - The type of information
item - The name of the item
req - The http request
Returns:
True if allowed