public class RestMethodResult extends Object
| Constructor and Description |
|---|
RestMethodResult(int responseCode) |
RestMethodResult(int responseCode,
boolean serializeSingleObjectAsCollection) |
RestMethodResult(int responseCode,
String message) |
| Modifier and Type | Method and Description |
|---|---|
void |
addContent(GraphObject graphObject) |
void |
addHeader(String key,
String value) |
void |
commitResponse(com.google.gson.Gson gson,
javax.servlet.http.HttpServletResponse response) |
Map<String,String> |
getHeaders() |
static String |
jsonError(int code,
String message) |
static String |
jsonMessage(int code,
String message) |
static String |
jsonMessage(int code,
String message,
String messageKey) |
public RestMethodResult(int responseCode)
public RestMethodResult(int responseCode,
String message)
public RestMethodResult(int responseCode,
boolean serializeSingleObjectAsCollection)
public void addContent(GraphObject graphObject)
public void commitResponse(com.google.gson.Gson gson,
javax.servlet.http.HttpServletResponse response)
Copyright © 2014. All rights reserved.