public abstract class SendStatus extends HttpOperation
Operation responsible for sending status codes via HttpServletResponse.setStatus(int) and
ServletResponse.flushBuffer()| Modifier and Type | Method and Description |
|---|---|
static SendStatus |
code(int code)
Create an
Operation that will send an HTTP status code to the browser, then call
ServletRewrite.abort() |
static SendStatus |
error(int code)
Create an
Operation that will send an HTTP error code to the browser, then call
ServletRewrite.abort() |
static SendStatus |
error(int code,
String message)
Create an
Operation that will send an HTTP error code and message to the browser, then call
ServletRewrite.abort() |
protected int |
getCode() |
protected String |
getMessage() |
void |
performHttp(HttpServletRewrite event,
EvaluationContext context) |
performandpublic void performHttp(HttpServletRewrite event, EvaluationContext context)
performHttp in class HttpOperationprotected int getCode()
protected String getMessage()
public static SendStatus code(int code)
Operation that will send an HTTP status code to the browser, then call
ServletRewrite.abort()public static SendStatus error(int code)
Operation that will send an HTTP error code to the browser, then call
ServletRewrite.abort()public static SendStatus error(int code, String message)
Operation that will send an HTTP error code and message to the browser, then call
ServletRewrite.abort()Copyright © 2019 OCPsoft. All rights reserved.