|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface RequestMapper
This is the basic interface for request mappers, that defines the contract for configuring and executing mappings in a web environment from String HTTP parameters ( or a similar source ) and arbitrary objects.
| 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. |
| Method Detail |
|---|
void addMapping(Mapping mapping)
void setMapping(Mapping mapping)
Mapping.getPropertyName()void removeMapping(java.lang.String propertyName)
Mapping.getPropertyName()Mapping getMapping(java.lang.String propertyName)
Mapping.getPropertyName()SimpleMapping getSimpleMapping(java.lang.String propertyName)
java.util.Collection<Mapping> getMappings()
void setValidator(Validator validator)
Validator.validate(ValidationIssueBuilder,Object)
void performMapping(javax.servlet.ServletRequest request,
java.lang.Object bean)
throws ValidationException
Validation is performed in addition to the mapping, if a validator was set for the current request mapper.
ValidationExceptionsetValidator(Validator)
void performMapping(ParameterAccessor request,
java.lang.Object bean)
throws ValidationException
Validation is performed in addition to the mapping, if a validator was set for the current request mapper.
ValidationExceptionsetValidator(Validator)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||