|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.acsinet_solutions.cetia4.controller.map.SimpleRequestMapper
public class SimpleRequestMapper
This class performs a single mapping for single-field mappings; these types of mappings are common in basic field mappings.
| Constructor Summary | |
|---|---|
SimpleRequestMapper()
Create a request mapper with no configured mapping. |
|
SimpleRequestMapper(java.lang.String name,
java.lang.Class mappingType)
Create a mapper for a single mapping type. |
|
| Method Summary | |
|---|---|
void |
addMapping(Mapping mapping)
Add a mapping to the mapper. |
Mapping |
getMapping(java.lang.String propertyName)
Gets the mapping for a given property. |
java.util.Collection<Mapping> |
getMappings()
Get a reference to a read-only collection with all the mappings. |
SimpleMapping |
getSimpleMapping(java.lang.String propertyName)
Gets the simple mapping for a given property. |
void |
performMapping(ParameterAccessor request,
java.lang.Object bean)
Perform the mapping from the HTTP request values to the provided bean using a generic parameter accesor API. |
void |
performMapping(javax.servlet.ServletRequest request,
java.lang.Object bean)
Perform the mapping from the HTTP request values to the provided bean in the case of the servlet API. |
void |
removeMapping(java.lang.String propertyName)
Removes the mapping for a given property. |
void |
setMapping(Mapping mapping)
Sets the mapping for a given property. |
void |
setValidator(Validator validator)
Set an optional validation reference. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SimpleRequestMapper()
public SimpleRequestMapper(java.lang.String name,
java.lang.Class mappingType)
| Method Detail |
|---|
public final void addMapping(Mapping mapping)
RequestMapper
addMapping in interface RequestMapperpublic final void setMapping(Mapping mapping)
RequestMapper
setMapping in interface RequestMapperMapping.getPropertyName()public final void removeMapping(java.lang.String propertyName)
RequestMapper
removeMapping in interface RequestMapperMapping.getPropertyName()public final Mapping getMapping(java.lang.String propertyName)
RequestMapper
getMapping in interface RequestMapperMapping.getPropertyName()public final SimpleMapping getSimpleMapping(java.lang.String propertyName)
RequestMapper
getSimpleMapping in interface RequestMapperpublic final void setValidator(Validator validator)
RequestMapper
setValidator in interface RequestMapperValidator.validate(ValidationIssueBuilder,Object)public final java.util.Collection<Mapping> getMappings()
RequestMapper
getMappings in interface RequestMapper
public final void performMapping(javax.servlet.ServletRequest request,
java.lang.Object bean)
throws ValidationException
RequestMapperValidation is performed in addition to the mapping, if a validator was set for the current request mapper.
performMapping in interface RequestMapperValidationExceptionRequestMapper.setValidator(Validator)
public final void performMapping(ParameterAccessor request,
java.lang.Object bean)
throws ValidationException
RequestMapperValidation is performed in addition to the mapping, if a validator was set for the current request mapper.
performMapping in interface RequestMapperValidationExceptionRequestMapper.setValidator(Validator)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||