Package org.apache.struts.config
Class ControllerConfig
java.lang.Object
org.apache.struts.config.BaseConfig
org.apache.struts.config.ControllerConfig
- All Implemented Interfaces:
Serializable
A JavaBean representing the configuration information of a
<controller> element in a Struts configuration file.- Since:
- Struts 1.1
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intThe input buffer size for file uploads.protected StringThe chain catalog name for this module.protected StringThe chain command to execute for each request.protected StringThe content type and character encoding to be set on each response.protected longThe maximum permitted number of files that may be uploaded in a single request.protected StringThe replacement pattern used to determine a context-relative URL from aForwardConfigelement.protected booleanShould theinputproperty ofActionConfiginstances associated with this module be treated as the name of a correspondingForwardConfig.protected booleanShould we store a Locale object in the user's session if needed?protected StringThe maximum file size to process for file uploads.protected StringThe maximum size to process a complete request for file uploads.protected StringThe maximum length of a string parameter in a multipart request.protected StringThe maximum file size to retain in memory.protected StringThe fully qualified Java class name of the MultipartRequestHandler class to be used.protected booleanShould we set no-cache HTTP headers on each response?protected StringThe replacement pattern used to determine a context-relative URL from thepageattribute of Struts tags and configuration properties.protected StringThe fully qualified class name of the RequestProcessor implementation class to be used for this module.protected StringThe temporary working directory to use for file uploads.Fields inherited from class org.apache.struts.config.BaseConfig
configured -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintlongbooleanbooleanbooleanvoidsetBufferSize(int bufferSize) voidsetCatalog(String catalog) voidsetCommand(String command) voidsetContentType(String contentType) voidsetFileCountMax(long fileCountMax) voidsetForwardPattern(String forwardPattern) voidsetInputForward(boolean inputForward) voidsetLocale(boolean locale) voidsetMaxFileSize(String maxFileSize) voidsetMaxSize(String maxSize) voidsetMaxStringLen(String maxStringLen) voidsetMemFileSize(String memFileSize) voidsetMultipartClass(String multipartClass) voidsetNocache(boolean nocache) voidsetPagePattern(String pagePattern) voidsetProcessorClass(String processorClass) voidsetTempDir(String tempDir) toString()Return a String representation of this object.Methods inherited from class org.apache.struts.config.BaseConfig
copyProperties, freeze, getProperties, getProperty, inheritProperties, setProperties, setProperty, throwIfConfigured
-
Field Details
-
bufferSize
protected int bufferSizeThe input buffer size for file uploads. -
contentType
The content type and character encoding to be set on each response. -
catalog
The chain catalog name for this module. -
command
The chain command to execute for each request. -
forwardPattern
The replacement pattern used to determine a context-relative URL from aForwardConfigelement. 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 thepathproperty of aForwardConfiginstance.$$- 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$Pis utilized, which is backwards compatible with the hard coded functionality in prior versions. -
inputForward
protected boolean inputForwardShould theinputproperty ofActionConfiginstances associated with this module be treated as the name of a correspondingForwardConfig. Afalsevalue 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 localeShould we store a Locale object in the user's session if needed? -
maxSize
The maximum size to process a complete request for file uploads. -
maxFileSize
The maximum file size to process for file uploads. -
maxStringLen
The maximum length of a string parameter in a multipart request. -
fileCountMax
protected long fileCountMaxThe maximum permitted number of files that may be uploaded in a single request. A value of -1 indicates no maximum. -
memFileSize
The maximum file size to retain in memory. -
multipartClass
The fully qualified Java class name of the MultipartRequestHandler class to be used. -
nocache
protected boolean nocacheShould we set no-cache HTTP headers on each response? -
pagePattern
The replacement pattern used to determine a context-relative URL from thepageattribute 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 thepageattribute 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$Pis utilized, which is backwards compatible with the hard coded functionality in prior versions. -
processorClass
The fully qualified class name of the RequestProcessor implementation class to be used for this module. -
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
-
setContentType
-
getCatalog
-
setCatalog
-
getCommand
-
setCommand
-
getForwardPattern
-
setForwardPattern
-
getInputForward
public boolean getInputForward() -
setInputForward
public void setInputForward(boolean inputForward) -
getLocale
public boolean getLocale() -
setLocale
public void setLocale(boolean locale) -
getMaxSize
-
setMaxSize
-
getMaxFileSize
-
setMaxFileSize
-
getMaxStringLen
-
setMaxStringLen
-
getFileCountMax
public long getFileCountMax() -
setFileCountMax
public void setFileCountMax(long fileCountMax) -
getMemFileSize
-
setMemFileSize
-
getMultipartClass
-
setMultipartClass
-
getNocache
public boolean getNocache() -
setNocache
public void setNocache(boolean nocache) -
getPagePattern
-
setPagePattern
-
getProcessorClass
-
setProcessorClass
-
getTempDir
-
setTempDir
-
toString
Return a String representation of this object.
-