rewrite-config-servlet 2.0.0.Alpha6

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:
ConfigurationElement, Operation, OperationBuilder

public class SendStatus
extends HttpOperation

Responsible for sending status codes via HttpServletResponse.setStatus(int) and ServletResponse.flushBuffer()

Author:
Lincoln Baxter, III

Nested Class Summary
 
Nested classes/interfaces inherited from class org.ocpsoft.rewrite.config.DefaultOperationBuilder
DefaultOperationBuilder.NoOp
 
Method Summary
static SendStatus code(int code)
          Send an HTTP status code to the browser, then call ServletRewrite.abort()
static SendStatus error(int code)
           
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, create, wrap
 
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)
Send an HTTP status code to the browser, then call ServletRewrite.abort()


error

public static SendStatus error(int code)

rewrite-config-servlet 2.0.0.Alpha6

Copyright © 2013 OCPsoft. All Rights Reserved.