org.resthub.web.springmvc.router.support
Class RouterHandlerResolver

java.lang.Object
  extended by org.resthub.web.springmvc.router.support.RouterHandlerResolver

public class RouterHandlerResolver
extends Object

Resolve Controller and Action for the given route (that contains the fullAction "controller.action")

Author:
Brian Clozel

Constructor Summary
RouterHandlerResolver()
           
 
Method Summary
 org.springframework.web.method.HandlerMethod resolveHandler(Router.Route route, String fullAction, HTTPRequestAdapter req)
          Returns a proper HandlerMethod given the matching Route
 void setCachedControllers(Map<String,Object> controllers)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RouterHandlerResolver

public RouterHandlerResolver()
Method Detail

setCachedControllers

public void setCachedControllers(Map<String,Object> controllers)

resolveHandler

public org.springframework.web.method.HandlerMethod resolveHandler(Router.Route route,
                                                                   String fullAction,
                                                                   HTTPRequestAdapter req)
                                                            throws ActionNotFoundException
Returns a proper HandlerMethod given the matching Route

Parameters:
route - the matching Route for the current request
fullAction - string "controller.action"
Returns:
HandlerMethod to be used by the RequestAdapter
Throws:
ActionNotFoundException


Copyright © 2010-2012. All Rights Reserved.