com.acsinet_solutions.cetia4.controller.map
Interface ParamBinder

All Known Implementing Classes:
AbstractBasicParamBinder, DTOParamBinder, MultipartParamBinder, PathInfoParamBinder

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.

Author:
Santiago Arriaga
See Also:
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

getRequestMapper

RequestMapper getRequestMapper()
Get the request mapper for this binder, available here for external customization.


setRequestMapper

void setRequestMapper(RequestMapper mapper)
Allows an implementation to change completely the request mapper of a parameter binder.


bind

java.lang.Object bind(RequestContext context)
                      throws ValidationException
Bind the current request using the given request context instance. This process implies assigning a value to the parameter in a render or action method associated with the current param binder.

Throws:
ValidationException