jodd.bean.loaders
Class MultipartRequestLoader

java.lang.Object
  extended byjodd.bean.loaders.MultipartRequestLoader
All Implemented Interfaces:
Loader

public class MultipartRequestLoader
extends java.lang.Object
implements Loader

Populates java bean from MultipartRequest objects.

Names of requests parameters represents the names of bean properties. Values of requests parameters represents values of bean properties.

By java servlet specifications, parameter values are always String arrays (String[]). That is how they are sent to BeanUtil.setProperty(), except in case when this array contains just one String element. In that case it is sent as a single String.

BeanUtil.setProperty() will populate correctly target property.


Constructor Summary
MultipartRequestLoader()
           
 
Method Summary
 void load(java.lang.Object bean, java.lang.Object request)
          Loads values from given object into the bean.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultipartRequestLoader

public MultipartRequestLoader()
Method Detail

load

public void load(java.lang.Object bean,
                 java.lang.Object request)
Description copied from interface: Loader
Loads values from given object into the bean.

Specified by:
load in interface Loader
Parameters:
bean - bean to populate
request - object to populate from


Jodd v0.24.5 Javadoc