com.bradmcevoy.http
Class DebugFilter.DebugResponse

java.lang.Object
  extended by com.bradmcevoy.http.AbstractResponse
      extended by com.bradmcevoy.http.DebugFilter.DebugResponse
All Implemented Interfaces:
Response
Enclosing class:
DebugFilter

public class DebugFilter.DebugResponse
extends AbstractResponse


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.bradmcevoy.http.Response
Response.CacheControlResponse, Response.ContentEncoding, Response.ContentType, Response.Header, Response.Status
 
Field Summary
 
Fields inherited from class com.bradmcevoy.http.AbstractResponse
contentLength
 
Fields inherited from interface com.bradmcevoy.http.Response
HTTP, IMAGE_JPG, MULTIPART, XML
 
Constructor Summary
DebugFilter.DebugResponse(Response r)
           
 
Method Summary
 java.util.Map<java.lang.String,java.lang.String> getHeaders()
           
 java.lang.String getNonStandardHeader(java.lang.String code)
           
 java.io.OutputStream getOutputStream()
           
 Response.Status getStatus()
           
 void setAuthenticateHeader(java.util.List<java.lang.String> challenges)
          Must set multiple Authenticate headers, one for each challenge This will usually be one each for basic, digest, ntlm, etc Note that order might be significant to some clients, so should be preserved.
 Cookie setCookie(Cookie cookie)
          The setCookie method is used to set a cookie value with the cookie name.
 Cookie setCookie(java.lang.String name, java.lang.String value)
          The setCookie method is used to set a cookie value with the cookie name.
 void setNonStandardHeader(java.lang.String code, java.lang.String value)
           
 void setStatus(Response.Status status)
           
 
Methods inherited from class com.bradmcevoy.http.AbstractResponse
close, getContentLength, getContentTypeHeader, getResponseHeader, sendRedirect, setAllowHeader, setAnyDateHeader, setCacheControlMaxAgeHeader, setCacheControlNoCacheHeader, setCacheControlPrivateMaxAgeHeader, setContentEncodingHeader, setContentLengthHeader, setContentRangeHeader, setContentTypeHeader, setDateHeader, setDavHeader, setEtag, setExpiresHeader, setLastModifiedHeader, setLocationHeader, setLockTokenHeader, setResponseHeader, setVaryHeader, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DebugFilter.DebugResponse

public DebugFilter.DebugResponse(Response r)
Method Detail

getStatus

public Response.Status getStatus()

setStatus

public void setStatus(Response.Status status)

setNonStandardHeader

public void setNonStandardHeader(java.lang.String code,
                                 java.lang.String value)

getNonStandardHeader

public java.lang.String getNonStandardHeader(java.lang.String code)

getOutputStream

public java.io.OutputStream getOutputStream()

getHeaders

public java.util.Map<java.lang.String,java.lang.String> getHeaders()

setAuthenticateHeader

public void setAuthenticateHeader(java.util.List<java.lang.String> challenges)
Description copied from interface: Response
Must set multiple Authenticate headers, one for each challenge This will usually be one each for basic, digest, ntlm, etc Note that order might be significant to some clients, so should be preserved. ie list item zero should be first.

Parameters:
challenges - - a list of http authentication challenges

setCookie

public Cookie setCookie(Cookie cookie)
Description copied from interface: Response
The setCookie method is used to set a cookie value with the cookie name. This will add a cookie to the response stored under the name of the cookie, when this is committed it will be added as a Set-Cookie header to the resulting response.

Parameters:
cookie - this is the cookie to be added to the response
Returns:
returns the cookie that has been set in the response

setCookie

public Cookie setCookie(java.lang.String name,
                        java.lang.String value)
Description copied from interface: Response
The setCookie method is used to set a cookie value with the cookie name. This will add a cookie to the response stored under the name of the cookie, when this is committed it will be added as a Set-Cookie header to the resulting response. This is a convenience method that avoids cookie creation.

Parameters:
name - this is the cookie to be added to the response
value - this is the cookie value that is to be used
Returns:
returns the cookie that has been set in the response


Copyright © 2011. All Rights Reserved.