rewrite-config-servlet 2.0.0.Alpha2

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

Nested Class Summary
static class SendStatus.SendError
           
 
Nested classes/interfaces inherited from class org.ocpsoft.rewrite.config.DefaultOperationBuilder
DefaultOperationBuilder.NoOp
 
Constructor Summary
SendStatus(int code)
           
 
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
 

Constructor Detail

SendStatus

public SendStatus(int code)
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.Alpha2

Copyright © 2012 OCPsoft. All Rights Reserved.