org.ocpsoft.rewrite.servlet.config
Class SendStatus
java.lang.Object
org.ocpsoft.rewrite.config.DefaultOperationBuilder
org.ocpsoft.rewrite.servlet.config.HttpOperation
org.ocpsoft.rewrite.servlet.config.SendStatus
- All Implemented Interfaces:
- ConfigurationElement, Operation, OperationBuilder
- Direct Known Subclasses:
- SendStatus.SendError
public class SendStatus
- extends HttpOperation
Responsible for sending status codes via HttpServletResponse.setStatus(int) and
ServletResponse.flushBuffer()
- Author:
- Lincoln Baxter, III
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SendStatus
public SendStatus(int code)
performHttp
public void performHttp(HttpServletRewrite event,
EvaluationContext context)
- Specified by:
performHttp in class HttpOperation
getCode
protected int getCode()
code
public static SendStatus code(int code)
- Send an HTTP status code to the browser, then call
ServletRewrite.abort()
error
public static SendStatus error(int code)
Copyright © 2012 OCPsoft. All Rights Reserved.