@RequestScoped public class DefaultResult extends AbstractResult
| Constructor and Description |
|---|
DefaultResult(javax.servlet.http.HttpServletRequest request,
Container container,
ExceptionMapper exceptions,
TypeNameExtractor extractor) |
| Modifier and Type | Method and Description |
|---|---|
Result |
include(java.lang.Object value)
Stores an attribute in the result.
|
Result |
include(java.lang.String key,
java.lang.Object value)
Stores an attribute in the result.
|
java.util.Map<java.lang.String,java.lang.Object> |
included()
Return all included attributes via Result.include();
|
Result |
on(java.lang.Class<? extends java.lang.Exception> exception)
Add an
Exception to be handled by Exception Handler. |
<T extends View> |
use(java.lang.Class<T> view)
Force result to use the defined view.
|
boolean |
used()
Whether this result was used.
|
forwardTo, forwardTo, forwardTo, notFound, nothing, of, of, permanentlyRedirectTo, permanentlyRedirectTo, permanentlyRedirectTo, redirectTo, redirectTo, redirectTopublic DefaultResult(javax.servlet.http.HttpServletRequest request,
Container container,
ExceptionMapper exceptions,
TypeNameExtractor extractor)
public <T extends View> T use(java.lang.Class<T> view)
Resultpublic Result on(java.lang.Class<? extends java.lang.Exception> exception)
ResultException to be handled by Exception Handler.exception - The exception to handle.public Result include(java.lang.String key, java.lang.Object value)
Resultkey - a String specifying the key of the attributevalue - the object to be storedpublic boolean used()
Resultpublic java.util.Map<java.lang.String,java.lang.Object> included()
Resultpublic Result include(java.lang.Object value)
Resultvalue - the object to be storedTypeNameExtractorCopyright © 2013 Caelum. All Rights Reserved.