|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectninja.Result
public class Result
Field Summary | |
---|---|
static String |
APPLICATION_OCTET_STREAM
|
static String |
APPLICATION_XML
|
static String |
APPLICATON_JSON
|
static String |
LOCATION
|
static int |
SC_200_OK
|
static int |
SC_204_NO_CONTENT
|
static int |
SC_300_MULTIPLE_CHOICES
|
static int |
SC_301_MOVED_PERMANENTLY
|
static int |
SC_302_FOUND
|
static int |
SC_303_SEE_OTHER
|
static int |
SC_307_TEMPORARY_REDIRECT
|
static int |
SC_400_BAD_REQUEST
|
static int |
SC_403_FORBIDDEN
|
static int |
SC_404_NOT_FOUND
|
static int |
SC_500_INTERNAL_SERVER_ERROR
|
static int |
SC_501_NOT_IMPLEMENTED
|
static String |
TEXT_HTML
|
static String |
TEXT_PLAIN
|
Constructor Summary | |
---|---|
Result(int statusCode)
|
Method Summary | |
---|---|
Result |
addCookie(Cookie cookie)
|
Result |
addHeader(String headerName,
String headerContent)
|
void |
charset(String charset)
|
Result |
contentType(String contentType)
Sets the content type. |
String |
getCharset()
|
String |
getContentType()
|
List<Cookie> |
getCookies()
|
Map<String,String> |
getHeaders()
|
Object |
getRenderable()
|
int |
getStatusCode()
|
String |
getTemplate()
|
Result |
html()
Deprecated. |
Result |
json()
Deprecated. |
Result |
redirect(String url)
Deprecated. |
Result |
render(Object renderable)
|
Result |
setContentType(String contentType)
Deprecated. |
Result |
status(int statusCode)
|
Result |
template(String template)
|
Result |
unsetCookie(String name)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static int SC_200_OK
public static int SC_204_NO_CONTENT
public static int SC_300_MULTIPLE_CHOICES
public static int SC_301_MOVED_PERMANENTLY
public static int SC_302_FOUND
public static int SC_303_SEE_OTHER
public static int SC_307_TEMPORARY_REDIRECT
public static int SC_400_BAD_REQUEST
public static int SC_403_FORBIDDEN
public static int SC_404_NOT_FOUND
public static int SC_500_INTERNAL_SERVER_ERROR
public static int SC_501_NOT_IMPLEMENTED
public static final String TEXT_HTML
public static final String TEXT_PLAIN
public static final String APPLICATON_JSON
public static final String APPLICATION_XML
public static final String APPLICATION_OCTET_STREAM
public static final String LOCATION
Constructor Detail |
---|
public Result(int statusCode)
Method Detail |
---|
public Object getRenderable()
public Result render(Object renderable)
public String getContentType()
public String getCharset()
public void charset(String charset)
@Deprecated public Result setContentType(String contentType)
contentType
- public Result contentType(String contentType)
charset(String)
;
contentType
- (without encoding) something like "text/html" or "application/json"public Map<String,String> getHeaders()
public Result addHeader(String headerName, String headerContent)
public List<Cookie> getCookies()
public Result addCookie(Cookie cookie)
public Result unsetCookie(String name)
public int getStatusCode()
public Result status(int statusCode)
public String getTemplate()
public Result template(String template)
@Deprecated public Result redirect(String url)
@Deprecated public Result html()
@Deprecated public Result json()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |