The Dispatch
object represents the dispatch to a controller method. It can be used for generating URL or as a {@link juzu.Response.View} objects. A dispatch object can be obtained from a {@link juzu.request.RequestContext}object for building controller methods, however the best way to obtain a builder is to use a controller companion that provides a type safe way for creating fully configured dispatch.
Type safe Dispatch
factory method are generated for each view, action or resource controller methods. The signature of a dispatch factory is the same as the original method.
public void MyController { @Action public Response.View myAction(String param) { return MyController_.myRender(); } @View public void myRender() { String url = MyController_.myAction("hello"); } }
@author Julien Viet
|
|
|
|