org.kuali.rice.kns.web.struts.config
Class KualiControllerConfig

java.lang.Object
  extended by org.apache.struts.config.BaseConfig
      extended by org.apache.struts.config.ControllerConfig
          extended by org.kuali.rice.kns.web.struts.config.ControllerConfigWrapper
              extended by org.kuali.rice.kns.web.struts.config.KualiControllerConfig
All Implemented Interfaces:
Serializable

public class KualiControllerConfig
extends ControllerConfigWrapper

Kuali customization of ControllerConfig which delegates max upload size lookup to parameter service: KRADConstants.KNS_NAMESPACE, KRADConstants.DetailTypes.ALL_DETAIL_TYPE, KRADConstants.MAX_UPLOAD_SIZE_PARM_NM The value must be a string compatible with Struts maxFileSize attribute.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.kuali.rice.kns.web.struts.config.ControllerConfigWrapper
config
 
Fields inherited from class org.apache.struts.config.ControllerConfig
bufferSize, catalog, command, contentType, forwardPattern, inputForward, locale, maxFileSize, memFileSize, multipartClass, nocache, pagePattern, processorClass, tempDir
 
Fields inherited from class org.apache.struts.config.BaseConfig
configured
 
Constructor Summary
KualiControllerConfig(org.apache.struts.config.ControllerConfig config)
           
 
Method Summary
 String getMaxFileSize()
          Returns the global max file upload size, which is dynamically derived from the Rice parameter service.
 void setMaxFileSize(String s)
          Overridden to throw an UnsupportedOperationException.
 
Methods inherited from class org.kuali.rice.kns.web.struts.config.ControllerConfigWrapper
freeze, getBufferSize, getCatalog, getCommand, getContentType, getForwardPattern, getInputForward, getLocale, getMemFileSize, getMultipartClass, getNocache, getPagePattern, getProcessorClass, getProperty, getTempDir, setBufferSize, setCatalog, setCommand, setContentType, setForwardPattern, setInputForward, setLocale, setMemFileSize, setMultipartClass, setNocache, setPagePattern, setProcessorClass, setProperty, setTempDir, throwIfConfigured, toString
 
Methods inherited from class org.apache.struts.config.BaseConfig
copyProperties, getProperties, inheritProperties, setProperties
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

KualiControllerConfig

public KualiControllerConfig(org.apache.struts.config.ControllerConfig config)
Method Detail

getMaxFileSize

public String getMaxFileSize()
Returns the global max file upload size, which is dynamically derived from the Rice parameter service. This technically breaks the implicit contract in ControllerConfig that the config is frozen after startup.

Overrides:
getMaxFileSize in class ControllerConfigWrapper
Returns:
the global max file upload size

setMaxFileSize

public void setMaxFileSize(String s)
Overridden to throw an UnsupportedOperationException. Once our KualiControllerConfig is in place, it does not make sense to support this setter.

Overrides:
setMaxFileSize in class ControllerConfigWrapper


Copyright © 2005-2013 The Kuali Foundation. All Rights Reserved.