com.acsinet_solutions.cetia4.controller.rest
Class PathInfoParamBinder

java.lang.Object
  extended by com.acsinet_solutions.cetia4.controller.map.AbstractBasicParamBinder
      extended by com.acsinet_solutions.cetia4.controller.rest.PathInfoParamBinder
All Implemented Interfaces:
ParamBinder

public final class PathInfoParamBinder
extends AbstractBasicParamBinder

Parameter binder for data that comes as part of the path-info String.

Author:
Santiago Arriaga

Constructor Summary
PathInfoParamBinder(java.lang.Class paramType, int index)
          Create a parameter binder for the given type.
 
Method Summary
 java.lang.Object bind(RequestContext context)
          Bind the current request using the given request context instance.
 
Methods inherited from class com.acsinet_solutions.cetia4.controller.map.AbstractBasicParamBinder
bind, getRequestMapper, setRequestMapper
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PathInfoParamBinder

public PathInfoParamBinder(java.lang.Class paramType,
                           int index)
Create a parameter binder for the given type.

Parameters:
key - The key of the HTTP parameter that feeds this binder
Method Detail

bind

public final java.lang.Object bind(RequestContext context)
                            throws ValidationException
Description copied from interface: ParamBinder
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