|
Return to www.inductionframework.org | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.acciente.induction.resolver.URLPathControllerResolver
public class URLPathControllerResolver
This class implements a controller resolver that maps the path info in the URL to a controller class name and method name. On the path following the servlet's context path is used. So assuming the servlet's context path is /myapp/cgi then given the URL:
/myapp/cgi/myapp/cart/CartController/addItem?item_id=widget-202&qty=500
the following part of the URL will be used for determining which controller/method to invoke:
/myapp/cart/CartController/additem
which would resolve to:
class-name: myapp.cart.CartController
method-name: addItem
If the path ends with a trailing slash the, it is assumed that no method name is given and the resolver will set the method name to null, which will cause the framework to invoke a default user-configurable controller method name.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.acciente.induction.resolver.ControllerResolver |
|---|
ControllerResolver.Resolution |
| Constructor Summary | |
|---|---|
URLPathControllerResolver(Config.ControllerResolver oConfig)
|
|
| Method Summary | |
|---|---|
ControllerResolver.Resolution |
resolve(javax.servlet.http.HttpServletRequest oRequest)
This method should resolve the class name of the controller and method name within same to be invoked in response to the specified HTTP request |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public URLPathControllerResolver(Config.ControllerResolver oConfig)
| Method Detail |
|---|
public ControllerResolver.Resolution resolve(javax.servlet.http.HttpServletRequest oRequest)
ControllerResolver
resolve in interface ControllerResolveroRequest - the HTTP request context in which the resolution is requested
|
Return to www.inductionframework.org | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||