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
Modifier and TypeFieldDescriptionprotected int
The input buffer size for file uploads.protected String
The chain catalog name for this module.protected String
The chain command to execute for each request.protected String
The content type and character encoding to be set on each response.protected long
The maximum permitted number of files that may be uploaded in a single request.protected String
The replacement pattern used to determine a context-relative URL from aForwardConfig
element.protected boolean
Should theinput
property ofActionConfig
instances associated with this module be treated as the name of a correspondingForwardConfig
.protected boolean
Should we store a Locale object in the user's session if needed?protected String
The maximum file size to process for file uploads.protected String
The maximum size to process a complete request for file uploads.protected String
The maximum length of a string parameter in a multipart request.protected String
The maximum file size to retain in memory.protected String
The fully qualified Java class name of the MultipartRequestHandler class to be used.protected boolean
Should we set no-cache HTTP headers on each response?protected String
The replacement pattern used to determine a context-relative URL from thepage
attribute of Struts tags and configuration properties.protected String
The fully qualified class name of the RequestProcessor implementation class to be used for this module.protected String
The temporary working directory to use for file uploads.Fields inherited from class org.apache.struts.config.BaseConfig
configured
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
long
boolean
boolean
boolean
void
setBufferSize
(int bufferSize) void
setCatalog
(String catalog) void
setCommand
(String command) void
setContentType
(String contentType) void
setFileCountMax
(long fileCountMax) void
setForwardPattern
(String forwardPattern) void
setInputForward
(boolean inputForward) void
setLocale
(boolean locale) void
setMaxFileSize
(String maxFileSize) void
setMaxSize
(String maxSize) void
setMaxStringLen
(String maxStringLen) void
setMemFileSize
(String memFileSize) void
setMultipartClass
(String multipartClass) void
setNocache
(boolean nocache) void
setPagePattern
(String pagePattern) void
setProcessorClass
(String processorClass) void
setTempDir
(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 aForwardConfig
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 thepath
property of aForwardConfig
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 inputForwardShould theinput
property ofActionConfig
instances associated with this module be treated as the name of a correspondingForwardConfig
. Afalse
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 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 thepage
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 thepage
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
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.
-