public class ServletOps extends Object
Constructor and Description |
---|
ServletOps() |
Modifier and Type | Method and Description |
---|---|
static void |
error(int statusCode) |
static void |
error(int statusCode,
String string) |
static void |
errorBadRequest(String string) |
static void |
errorForbidden() |
static void |
errorForbidden(String msg) |
static void |
errorMethodNotAllowed(String method) |
static void |
errorMethodNotAllowed(String method,
String msg) |
static void |
errorNotFound() |
static void |
errorNotFound(String string) |
static void |
errorNotImplemented(String msg) |
static void |
errorOccurred(String message) |
static void |
errorOccurred(String message,
Throwable ex) |
static void |
errorOccurred(Throwable ex) |
static String |
formatForLog(String string) |
static void |
responseSendError(javax.servlet.http.HttpServletResponse response,
int statusCode) |
static void |
responseSendError(javax.servlet.http.HttpServletResponse response,
int statusCode,
String message) |
static void |
sendJson(HttpAction action,
JsonValue v)
Send a JSON value as a 200 response.
|
static void |
sendJsonReponse(HttpAction action,
JsonValue v)
Send a JSON value as a 200 response.
|
static void |
setNoCache(HttpAction action) |
static void |
setNoCache(javax.servlet.http.HttpServletResponse response) |
static void |
success(HttpAction action) |
static void |
success(HttpAction action,
int httpStatusCode) |
static void |
successCreated(HttpAction action) |
static void |
successNoContent(HttpAction action) |
static void |
successNotFound(HttpAction action) |
static void |
successPage(HttpAction action,
String message) |
static void |
uploadResponse(HttpAction action,
UploadDetails details)
response to a upload operation of some kind.
|
static void |
warning(HttpAction action,
String string) |
static void |
warning(HttpAction action,
String string,
Throwable thorwable) |
public static void responseSendError(javax.servlet.http.HttpServletResponse response, int statusCode, String message)
public static void responseSendError(javax.servlet.http.HttpServletResponse response, int statusCode)
public static void successNoContent(HttpAction action)
public static void success(HttpAction action)
public static void successCreated(HttpAction action)
public static void successNotFound(HttpAction action)
public static void success(HttpAction action, int httpStatusCode)
public static void successPage(HttpAction action, String message)
public static void warning(HttpAction action, String string)
public static void warning(HttpAction action, String string, Throwable thorwable)
public static void errorBadRequest(String string)
public static void errorNotFound()
public static void errorNotFound(String string)
public static void errorNotImplemented(String msg)
public static void errorMethodNotAllowed(String method)
public static void errorForbidden()
public static void errorForbidden(String msg)
public static void error(int statusCode)
public static void error(int statusCode, String string)
public static void errorOccurred(String message)
public static void errorOccurred(Throwable ex)
public static void setNoCache(HttpAction action)
public static void setNoCache(javax.servlet.http.HttpServletResponse response)
public static void sendJsonReponse(HttpAction action, JsonValue v)
public static void sendJson(HttpAction action, JsonValue v)
public static void uploadResponse(HttpAction action, UploadDetails details)
Licensed under the Apache License, Version 2.0