|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.stripes.controller.multipart.DefaultMultipartWrapperFactory
public class DefaultMultipartWrapperFactory
Default implementation of a factory for MultipartWrappers. Looks up a class name in
Configuration under the key specified by WRAPPER_CLASS_NAME
. If no class
name is configured, defaults to the CosMultipartWrapper
. An additional configuration
parameter is supported to specify the maximum post size allowable.
Field Summary | |
---|---|
static String[] |
BUNDLED_IMPLEMENTATIONS
The names of the MultipartWrapper classes that will be tried if no other is specified. |
static String |
MAX_POST
Key used to lookup the name of the maximum post size. |
static String |
WRAPPER_CLASS_NAME
The configuration key used to lookup the implementation of MultipartWrapper. |
Constructor Summary | |
---|---|
DefaultMultipartWrapperFactory()
|
Method Summary | |
---|---|
void |
init(Configuration config)
Invoked directly after instantiation to allow the configured component to perform one time initialization. |
MultipartWrapper |
wrap(HttpServletRequest request)
Wraps the request in an appropriate implementation of MultipartWrapper that is capable of providing access to request parameters and any file parts contained within the request. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String WRAPPER_CLASS_NAME
public static final String[] BUNDLED_IMPLEMENTATIONS
public static final String MAX_POST
Constructor Detail |
---|
public DefaultMultipartWrapperFactory()
Method Detail |
---|
public void init(Configuration config) throws Exception
init
in interface ConfigurableComponent
config
- the Configuration object being used by Stripes
Exception
- should be thrown if the component cannot be configured well enough to use.public MultipartWrapper wrap(HttpServletRequest request) throws IOException, FileUploadLimitExceededException
wrap
in interface MultipartWrapperFactory
request
- an active HttpServletRequest
IOException
- if encountered when consuming the contents of the request
FileUploadLimitExceededException
- if the post size of the request exceeds any
configured limits
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |