rewrite-config-servlet 2.0.0.Beta3

org.ocpsoft.rewrite.servlet.config
Class SendStatus

java.lang.Object
  extended by org.ocpsoft.rewrite.config.DefaultOperationBuilder
      extended by org.ocpsoft.rewrite.servlet.config.HttpOperation
          extended by 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

Method Summary
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()
protected  int getCode()
           
 void performHttp(HttpServletRewrite event, EvaluationContext context)
           
 
Methods inherited from class org.ocpsoft.rewrite.servlet.config.HttpOperation
perform
 
Methods inherited from class org.ocpsoft.rewrite.config.DefaultOperationBuilder
and
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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()


rewrite-config-servlet 2.0.0.Beta3

Copyright © 2013 OCPsoft. All Rights Reserved.