Home » Struts-1.3.10 » org.apache.struts » config » [javadoc | source]
org.apache.struts.config
public class: ControllerConfig [javadoc | source]
java.lang.Object
   org.apache.struts.config.ControllerConfig

All Implemented Interfaces:
    Serializable

A JavaBean representing the configuration information of a <controller> element in a Struts configuration file.

Field Summary
protected  boolean configured    Has this component been completely configured? 
protected  int bufferSize    The input buffer size for file uploads. 
protected  String contentType    The content type and character encoding to be set on each response. 
protected  String forwardPattern   

The replacement pattern used to determine a context-relative URL from a ForwardConfig element. The pattern may consist of any combination of the following markers and characters:

  • $M - Replaced by the module prefix for the current module.
  • $P - Replaced by the path property of a ForwardConfig instance.
  • $$ - Renders a literal dollar sign ("$") character in the resulting URL.
  • A dollar sign followed by any other character is reserved for future use, and both characters are silently swallowed.
  • All other characters in the pattern are passed through unchanged.

If this property is set to null, a default pattern of $M$P is utilized, which is backwards compatible with the hard coded functionality in prior versions.

 
protected  boolean inputForward   

Should the input property of ActionConfig instances associated with this module be treated as the name of a corresponding ForwardConfig . A false value treats them as a module-relative path (consistent with the hard coded behavior of earlier versions of Struts.

    since: Struts - 1.1
 
protected  boolean locale    Should we store a Locale object in the user's session if needed? 
protected  String maxFileSize    The maximum file size to process for file uploads. 
protected  String memFileSize    The maximum file size to retain in memory. 
protected  String multipartClass    The fully qualified Java class name of the MultipartRequestHandler class to be used. 
protected  boolean nocache    Should we set no-cache HTTP headers on each response? 
protected  String pagePattern   

The replacement pattern used to determine a context-relative URL from the page attribute of Struts tags and configuration properties. The pattern may consist of any combination of the following markers and characters:

  • $M - Replaced by the module prefix for the current module.
  • $P - Replaced by the page attribute value being evaluated.
  • $$ - Renders a literal dollar sign ("$") character in the resulting URL.
  • A dollar sign followed by any other character is reserved for future use, and both characters are silently swallowed.
  • All other characters in the pattern are passed through unchanged.

If this property is set to null, a default pattern of $M$P is utilized, which is backwards compatible with the hard coded functionality in prior versions.

 
protected  String processorClass    The fully qualified class name of the RequestProcessor implementation class to be used for this module. 
protected  String tempDir    The temporary working directory to use for file uploads. 
Method from org.apache.struts.config.ControllerConfig Summary:
freeze,   getBufferSize,   getContentType,   getForwardPattern,   getInputForward,   getLocale,   getMaxFileSize,   getMemFileSize,   getMultipartClass,   getNocache,   getPagePattern,   getProcessorClass,   getTempDir,   setBufferSize,   setContentType,   setForwardPattern,   setInputForward,   setLocale,   setMaxFileSize,   setMemFileSize,   setMultipartClass,   setNocache,   setPagePattern,   setProcessorClass,   setTempDir,   toString
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.struts.config.ControllerConfig Detail:
 public  void freeze() 
    Freeze the configuration of this component.
 public int getBufferSize() 
 public String getContentType() 
 public String getForwardPattern() 
 public boolean getInputForward() 
 public boolean getLocale() 
 public String getMaxFileSize() 
 public String getMemFileSize() 
 public String getMultipartClass() 
 public boolean getNocache() 
 public String getPagePattern() 
 public String getProcessorClass() 
 public String getTempDir() 
 public  void setBufferSize(int bufferSize) 
 public  void setContentType(String contentType) 
 public  void setForwardPattern(String forwardPattern) 
 public  void setInputForward(boolean inputForward) 
 public  void setLocale(boolean locale) 
 public  void setMaxFileSize(String maxFileSize) 
 public  void setMemFileSize(String memFileSize) 
 public  void setMultipartClass(String multipartClass) 
 public  void setNocache(boolean nocache) 
 public  void setPagePattern(String pagePattern) 
 public  void setProcessorClass(String processorClass) 
 public  void setTempDir(String tempDir) 
 public String toString() 
    Return a String representation of this object.