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:
- Operation, OperationBuilder
public class SendStatus
- extends HttpOperation
An Operation 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 |
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)
- Create an
Operation that will send an HTTP status code to the browser, then call
ServletRewrite.abort()
error
public static SendStatus error(int code)
- Create an
Operation that will send an HTTP error code to the browser, then call
ServletRewrite.abort()
Copyright © 2013 OCPsoft. All Rights Reserved.