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
An
Operation responsible for sending status codes via HttpServletResponse.setStatus(int) and
ServletResponse.flushBuffer()- Author:
- Lincoln Baxter, III
-
Method Summary
Modifier and TypeMethodDescriptionstatic SendStatuscode(int code) Create anOperationthat will send an HTTP status code to the browser, then callServletRewrite.abort()static SendStatuserror(int code) Create anOperationthat will send an HTTP error code to the browser, then callServletRewrite.abort()static SendStatusCreate anOperationthat will send an HTTP error code and message to the browser, then callServletRewrite.abort()protected intgetCode()protected StringvoidperformHttp(HttpServletRewrite event, EvaluationContext context) Methods inherited from class org.ocpsoft.rewrite.servlet.config.HttpOperation
performMethods inherited from class org.ocpsoft.rewrite.config.DefaultOperationBuilder
and
-
Method Details
-
performHttp
- Specified by:
performHttpin classHttpOperation
-
getCode
protected int getCode() -
getMessage
-
code
Create anOperationthat will send an HTTP status code to the browser, then callServletRewrite.abort() -
error
Create anOperationthat will send an HTTP error code to the browser, then callServletRewrite.abort() -
error
Create anOperationthat will send an HTTP error code and message to the browser, then callServletRewrite.abort()
-