rewrite-impl-servlet 1.0.2.Final

org.ocpsoft.rewrite.servlet.config
Class Response

java.lang.Object
  extended by org.ocpsoft.rewrite.config.OperationBuilder
      extended by org.ocpsoft.rewrite.servlet.config.HttpOperation
          extended by org.ocpsoft.rewrite.servlet.config.Response
All Implemented Interfaces:
Operation

public abstract class Response
extends HttpOperation

Responsible for adding various properties such as headers and cookies to the HttpServletResponse

Author:
Lincoln Baxter, III

Constructor Summary
Response()
           
 
Method Summary
static Response addCookie(javax.servlet.http.Cookie cookie)
          Create an Operation that adds a Cookie to the HttpServletResponse
static Response addDateHeader(java.lang.String name, long value)
          Create an Operation that adds a date header to the HttpServletResponse
static Response addHeader(java.lang.String name, java.lang.String value)
          Create an Operation that adds a header to the HttpServletResponse
static Response addIntHeader(java.lang.String name, int value)
          Create an Operation that adds an int header to the HttpServletResponse
static Response setCode(int code)
           
 
Methods inherited from class org.ocpsoft.rewrite.servlet.config.HttpOperation
perform, performHttp
 
Methods inherited from class org.ocpsoft.rewrite.config.OperationBuilder
and
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Response

public Response()
Method Detail

addHeader

public static Response addHeader(java.lang.String name,
                                 java.lang.String value)
Create an Operation that adds a header to the HttpServletResponse


addDateHeader

public static Response addDateHeader(java.lang.String name,
                                     long value)
Create an Operation that adds a date header to the HttpServletResponse


addIntHeader

public static Response addIntHeader(java.lang.String name,
                                    int value)
Create an Operation that adds an int header to the HttpServletResponse


addCookie

public static Response addCookie(javax.servlet.http.Cookie cookie)
Create an Operation that adds a Cookie to the HttpServletResponse


setCode

public static Response setCode(int code)

rewrite-impl-servlet 1.0.2.Final

Copyright © 2012 OCPsoft. All Rights Reserved.