public class DefaultPageResult extends java.lang.Object implements PageResult
Constructor and Description |
---|
DefaultPageResult(MutableRequest req,
javax.servlet.http.HttpServletResponse res,
MethodInfo requestInfo,
PathResolver resolver,
Proxifier proxifier) |
Modifier and Type | Method and Description |
---|---|
void |
defaultView()
Server side forwarding to a result.
|
void |
forward() |
void |
forward(java.lang.String url) |
void |
forwardTo(java.lang.String url)
Server side forwarding to a specific url.
|
void |
include()
Server side include a result.
|
<T> T |
of(java.lang.Class<T> controllerType)
Render the default view of given logic, without executing the logic.
|
void |
redirect(java.lang.String url) |
void |
redirectTo(java.lang.String url)
Client side redirect to an specific url.
|
public DefaultPageResult(MutableRequest req, javax.servlet.http.HttpServletResponse res, MethodInfo requestInfo, PathResolver resolver, Proxifier proxifier)
public void defaultView()
PageResult
defaultView
in interface PageResult
public void include()
PageResult
include
in interface PageResult
public void redirectTo(java.lang.String url)
PageResult
redirectTo
in interface PageResult
public void forwardTo(java.lang.String url)
PageResult
forwardTo
in interface PageResult
public <T> T of(java.lang.Class<T> controllerType)
PageResult
of
in interface PageResult
public void redirect(java.lang.String url)
redirect
in interface PageResult
public void forward(java.lang.String url)
forward
in interface PageResult
public void forward()
forward
in interface PageResult
Copyright © 2013 Caelum. All Rights Reserved.