Class ControllerConfig

java.lang.Object
org.apache.struts.config.BaseConfig
org.apache.struts.config.ControllerConfig
All Implemented Interfaces:
Serializable

public class ControllerConfig extends BaseConfig
A JavaBean representing the configuration information of a <controller> element in a Struts configuration file.
Since:
Struts 1.1
See Also:
  • Field Details

    • bufferSize

      protected int bufferSize
      The input buffer size for file uploads.
    • contentType

      protected String contentType
      The content type and character encoding to be set on each response.
    • catalog

      protected String catalog
      The chain catalog name for this module.
    • command

      protected String command
      The chain command to execute for each request.
    • forwardPattern

      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.

    • inputForward

      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
    • locale

      protected boolean locale
      Should we store a Locale object in the user's session if needed?
    • maxSize

      protected String maxSize
      The maximum size to process a complete request for file uploads.
    • maxFileSize

      protected String maxFileSize
      The maximum file size to process for file uploads.
    • maxStringLen

      protected String maxStringLen
      The maximum length of a string parameter in a multipart request.
    • fileCountMax

      protected long fileCountMax
      The maximum permitted number of files that may be uploaded in a single request. A value of -1 indicates no maximum.
    • memFileSize

      protected String memFileSize
      The maximum file size to retain in memory.
    • multipartClass

      protected String multipartClass
      The fully qualified Java class name of the MultipartRequestHandler class to be used.
    • nocache

      protected boolean nocache
      Should we set no-cache HTTP headers on each response?
    • pagePattern

      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.

    • processorClass

      protected String processorClass
      The fully qualified class name of the RequestProcessor implementation class to be used for this module.
    • tempDir

      protected String tempDir
      The temporary working directory to use for file uploads.
  • Constructor Details

    • ControllerConfig

      public ControllerConfig()
  • Method Details

    • getBufferSize

      public int getBufferSize()
    • setBufferSize

      public void setBufferSize(int bufferSize)
    • getContentType

      public String getContentType()
    • setContentType

      public void setContentType(String contentType)
    • getCatalog

      public String getCatalog()
    • setCatalog

      public void setCatalog(String catalog)
    • getCommand

      public String getCommand()
    • setCommand

      public void setCommand(String command)
    • getForwardPattern

      public String getForwardPattern()
    • setForwardPattern

      public void setForwardPattern(String forwardPattern)
    • getInputForward

      public boolean getInputForward()
    • setInputForward

      public void setInputForward(boolean inputForward)
    • getLocale

      public boolean getLocale()
    • setLocale

      public void setLocale(boolean locale)
    • getMaxSize

      public String getMaxSize()
    • setMaxSize

      public void setMaxSize(String maxSize)
    • getMaxFileSize

      public String getMaxFileSize()
    • setMaxFileSize

      public void setMaxFileSize(String maxFileSize)
    • getMaxStringLen

      public String getMaxStringLen()
    • setMaxStringLen

      public void setMaxStringLen(String maxStringLen)
    • getFileCountMax

      public long getFileCountMax()
    • setFileCountMax

      public void setFileCountMax(long fileCountMax)
    • getMemFileSize

      public String getMemFileSize()
    • setMemFileSize

      public void setMemFileSize(String memFileSize)
    • getMultipartClass

      public String getMultipartClass()
    • setMultipartClass

      public void setMultipartClass(String multipartClass)
    • getNocache

      public boolean getNocache()
    • setNocache

      public void setNocache(boolean nocache)
    • getPagePattern

      public String getPagePattern()
    • setPagePattern

      public void setPagePattern(String pagePattern)
    • getProcessorClass

      public String getProcessorClass()
    • setProcessorClass

      public void setProcessorClass(String processorClass)
    • getTempDir

      public String getTempDir()
    • setTempDir

      public void setTempDir(String tempDir)
    • toString

      public String toString()
      Return a String representation of this object.
      Overrides:
      toString in class Object