|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ParamBinder
Parameter binder interface; defines the contract for a parameter binding policy. All parameters in a render or action method after the first context param ( RenderContext, etc. ) will be bound parameters with a ParamBinder of some sort associated to them.
Bound parameters may be simple integer or String parameters, or very complex object structures. The associated RequestMapper is the responsible of performing the necessary mappings associated with the binding process. As it is a RequestMapper, validation may also be performed here if necessary.
This interface is generic and not REST specific.
RequestMapper| 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. |
| Method Detail |
|---|
RequestMapper getRequestMapper()
void setRequestMapper(RequestMapper mapper)
java.lang.Object bind(RequestContext context)
throws ValidationException
ValidationException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||