public class DefaultPageResult extends Object implements PageResult
| Constructor and Description |
|---|
DefaultPageResult(MutableRequest req,
MutableResponse 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(String url) |
void |
forwardTo(String url)
Server side forwarding to a specific url.
|
void |
include()
Server side include a result.
|
<T> T |
of(Class<T> controllerType)
Render the default view of given logic, without executing the logic.
|
void |
redirect(String url) |
void |
redirectTo(String url)
Client side redirect to an specific url.
|
@Inject public DefaultPageResult(MutableRequest req, MutableResponse res, MethodInfo requestInfo, PathResolver resolver, Proxifier proxifier)
public void defaultView()
PageResultdefaultView in interface PageResultpublic void include()
PageResultinclude in interface PageResultpublic void redirectTo(String url)
PageResultredirectTo in interface PageResultpublic void forwardTo(String url)
PageResultforwardTo in interface PageResultpublic <T> T of(Class<T> controllerType)
PageResultof in interface PageResultpublic void redirect(String url)
redirect in interface PageResultpublic void forward(String url)
forward in interface PageResultpublic void forward()
forward in interface PageResultCopyright © 2014 Caelum. All Rights Reserved.