public class Results
extends java.lang.Object
Constructor and Description |
---|
Results() |
Modifier and Type | Method and Description |
---|---|
static java.lang.Class<HttpResult> |
http()
Sends information through the HTTP protocol, like
status codes and header
|
static java.lang.Class<JSONSerialization> |
json()
Uses json serialization.
|
static java.lang.Class<JSONPSerialization> |
jsonp()
Uses jsonp serialization.
|
static java.lang.Class<LogicResult> |
logic()
Server and client side forward to another logic.
|
static java.lang.Class<I18nMessageSerialization> |
message()
Alias for json i18nMessage serialization
|
static java.lang.Class<EmptyResult> |
nothing()
Uses an empty page.
|
static java.lang.Class<? extends PageResult> |
page()
Offers server side forward and include for web pages.
Should be used only with end results (not logics), otherwise you might achieve the server-redirect-hell (f5 problem) issue. |
static java.lang.Class<RefererResult> |
referer()
Uses Referer header to redirect or forward
|
static java.lang.Class<RepresentationResult> |
representation()
Uses a representation of an object based on request accept format.
|
static java.lang.Class<Status> |
status()
Uses pure header status.
|
static java.lang.Class<XMLSerialization> |
xml()
Uses xml serialization.
|
public static java.lang.Class<? extends PageResult> page()
public static java.lang.Class<LogicResult> logic()
public static java.lang.Class<EmptyResult> nothing()
public static java.lang.Class<HttpResult> http()
public static java.lang.Class<RefererResult> referer()
public static java.lang.Class<Status> status()
public static java.lang.Class<XMLSerialization> xml()
public static java.lang.Class<JSONSerialization> json()
public static java.lang.Class<I18nMessageSerialization> message()
public static java.lang.Class<JSONPSerialization> jsonp()
public static java.lang.Class<RepresentationResult> representation()
Copyright © 2013 Caelum. All Rights Reserved.