public abstract class AbstractResult extends java.lang.Object implements Result
Constructor and Description |
---|
AbstractResult() |
Modifier and Type | Method and Description |
---|---|
<T> T |
forwardTo(java.lang.Class<T> controller)
A shortcut to result.use(logic()).forwardTo(controller)
|
void |
forwardTo(java.lang.String uri)
A shortcut to result.use(page()).forwardTo(uri);
|
<T> T |
forwardTo(T controller)
A shortcut to result.use(logic()).forwardTo(controller.getClass())
so you can use on your controller:
result.forwardTo(this).aMethod(); |
void |
notFound()
A shortcut to result.use(status()).notFound();
|
void |
nothing()
A shortcut to result.use(nothing())
|
<T> T |
of(java.lang.Class<T> controller)
A shortcut to result.use(page()).of(controller)
|
<T> T |
of(T controller)
A shortcut to result.use(page()).of(controller.getClass())
so you can use on your controller:
result.of(this).aMethod(); |
<T> T |
permanentlyRedirectTo(java.lang.Class<T> controller)
A shortcut to result.use(status()).movedPermanentlyTo(controller).
|
void |
permanentlyRedirectTo(java.lang.String uri)
A shortcut to result.use(status()).movedPermanentlyTo(uri).
|
<T> T |
permanentlyRedirectTo(T controller)
A shortcut to result.use(status()).movedPermanentlyTo(controller.getClass()).
|
<T> T |
redirectTo(java.lang.Class<T> controller)
A shortcut to result.use(logic()).redirectTo(controller)
|
void |
redirectTo(java.lang.String uri)
A shortcut to result.use(page()).redirectTo(uri);
|
<T> T |
redirectTo(T controller)
A shortcut to result.use(logic()).redirectTo(controller.getClass())
so you can use on your controller:
result.redirectTo(this).aMethod(); |
public void forwardTo(java.lang.String uri)
Result
forwardTo
in interface Result
PageResult.forwardTo(String)
public void redirectTo(java.lang.String uri)
Result
redirectTo
in interface Result
PageResult.forwardTo(String)
public <T> T forwardTo(java.lang.Class<T> controller)
Result
forwardTo
in interface Result
LogicResult.forwardTo(Class)
public <T> T redirectTo(java.lang.Class<T> controller)
Result
redirectTo
in interface Result
LogicResult.redirectTo(Class)
public <T> T of(java.lang.Class<T> controller)
Result
of
in interface Result
PageResult.of(Class)
public <T> T redirectTo(T controller)
Result
redirectTo
in interface Result
LogicResult.redirectTo(Class)
public <T> T forwardTo(T controller)
Result
forwardTo
in interface Result
LogicResult.forwardTo(Class)
public <T> T of(T controller)
Result
of
in interface Result
PageResult.of(Class)
public void nothing()
Result
public void notFound()
Result
public void permanentlyRedirectTo(java.lang.String uri)
Result
permanentlyRedirectTo
in interface Result
Status.movedPermanentlyTo(String)
public <T> T permanentlyRedirectTo(java.lang.Class<T> controller)
Result
permanentlyRedirectTo
in interface Result
Status.movedPermanentlyTo(Class)
public <T> T permanentlyRedirectTo(T controller)
Result
permanentlyRedirectTo
in interface Result
Status.movedPermanentlyTo(Class)
Copyright © 2013 Caelum. All Rights Reserved.