|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.acsinet_solutions.cetia4.controller.rest.DTOParamBinder
public class DTOParamBinder
Parameter binder for DTOs, or JavaBeans with getter and setters methods.
| Constructor Summary | |
|---|---|
DTOParamBinder(java.lang.Class paramType,
java.lang.reflect.Method method)
Create a parameter binder for the given type, using a default bean request mapper. |
|
DTOParamBinder(RequestMapper mapper,
java.lang.Class paramType,
java.lang.reflect.Method method)
Create a parameter binder for the given type, specifying the request mapper. |
|
| Method Summary | |
|---|---|
java.lang.Object |
bind(RequestContext context)
Bind the current request using the given request context instance. |
RequestMapper |
getRequestMapper()
Get the request mapper for this binder, available here for external customization. |
void |
setRequestMapper(RequestMapper mapper)
Allows an implementation to change completely the request mapper of a parameter binder. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DTOParamBinder(java.lang.Class paramType,
java.lang.reflect.Method method)
key - The key of the HTTP parameter that feeds this binder
public DTOParamBinder(RequestMapper mapper,
java.lang.Class paramType,
java.lang.reflect.Method method)
key - The key of the HTTP parameter that feeds this binder| Method Detail |
|---|
public final RequestMapper getRequestMapper()
ParamBinder
getRequestMapper in interface ParamBinderpublic void setRequestMapper(RequestMapper mapper)
ParamBinder
setRequestMapper in interface ParamBinder
public final java.lang.Object bind(RequestContext context)
throws ValidationException
ParamBinder
bind in interface ParamBinderValidationException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||