org.apache.struts.config

Class ControllerConfig

public class ControllerConfig extends Object implements Serializable

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

Since: Struts 1.1

Version: $Rev: 54929 $ $Date: 2004-10-16 17:38:42 +0100 (Sat, 16 Oct 2004) $

Field Summary
protected intbufferSize
The input buffer size for file uploads.
protected booleanconfigured
Has this component been completely configured?
protected StringcontentType
The content type and character encoding to be set on each response.
protected StringforwardPattern

The replacement pattern used to determine a context-relative URL from a ForwardConfig element.

protected booleaninputForward

Should the input property of ActionConfig instances associated with this module be treated as the name of a corresponding ForwardConfig.

protected booleanlocale
Should we store a Locale object in the user's session if needed?
protected StringmaxFileSize
The maximum file size to process for file uploads.
protected StringmemFileSize
The maximum file size to retain in memory.
protected StringmultipartClass
The fully qualified Java class name of the MultipartRequestHandler class to be used.
protected booleannocache
Should we set no-cache HTTP headers on each response?
protected StringpagePattern

The replacement pattern used to determine a context-relative URL from the page attribute of Struts tags and configuration properties.

protected StringprocessorClass
The fully qualified class name of the RequestProcessor implementation class to be used for this module.
protected StringtempDir
The temporary working directory to use for file uploads.
Method Summary
voidfreeze()
Freeze the configuration of this component.
intgetBufferSize()
StringgetContentType()
StringgetForwardPattern()
booleangetInputForward()
booleangetLocale()
StringgetMaxFileSize()
StringgetMemFileSize()
StringgetMultipartClass()
booleangetNocache()
StringgetPagePattern()
StringgetProcessorClass()
StringgetTempDir()
voidsetBufferSize(int bufferSize)
voidsetContentType(String contentType)
voidsetForwardPattern(String forwardPattern)
voidsetInputForward(boolean inputForward)
voidsetLocale(boolean locale)
voidsetMaxFileSize(String maxFileSize)
voidsetMemFileSize(String memFileSize)
voidsetMultipartClass(String multipartClass)
voidsetNocache(boolean nocache)
voidsetPagePattern(String pagePattern)
voidsetProcessorClass(String processorClass)
voidsetTempDir(String tempDir)
StringtoString()
Return a String representation of this object.

Field Detail

bufferSize

protected int bufferSize
The input buffer size for file uploads.

configured

protected boolean configured
Has this component been completely configured?

contentType

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

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:

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?

maxFileSize

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

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:

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.

Method Detail

freeze

public void freeze()
Freeze the configuration of this component.

getBufferSize

public int getBufferSize()

getContentType

public String getContentType()

getForwardPattern

public String getForwardPattern()

getInputForward

public boolean getInputForward()

getLocale

public boolean getLocale()

getMaxFileSize

public String getMaxFileSize()

getMemFileSize

public String getMemFileSize()

getMultipartClass

public String getMultipartClass()

getNocache

public boolean getNocache()

getPagePattern

public String getPagePattern()

getProcessorClass

public String getProcessorClass()

getTempDir

public String getTempDir()

setBufferSize

public void setBufferSize(int bufferSize)

setContentType

public void setContentType(String contentType)

setForwardPattern

public void setForwardPattern(String forwardPattern)

setInputForward

public void setInputForward(boolean inputForward)

setLocale

public void setLocale(boolean locale)

setMaxFileSize

public void setMaxFileSize(String maxFileSize)

setMemFileSize

public void setMemFileSize(String memFileSize)

setMultipartClass

public void setMultipartClass(String multipartClass)

setNocache

public void setNocache(boolean nocache)

setPagePattern

public void setPagePattern(String pagePattern)

setProcessorClass

public void setProcessorClass(String processorClass)

setTempDir

public void setTempDir(String tempDir)

toString

public String toString()
Return a String representation of this object.
Copyright B) 2000-2008 - The Apache Software Foundation