com.bradmcevoy.http
Class DebugFilter.DebugResponse
java.lang.Object
com.bradmcevoy.http.AbstractResponse
com.bradmcevoy.http.DebugFilter.DebugResponse
- All Implemented Interfaces:
- Response
- Enclosing class:
- DebugFilter
public class DebugFilter.DebugResponse
- extends AbstractResponse
| 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 |
DebugFilter.DebugResponse
public DebugFilter.DebugResponse(Response r)
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 responsevalue - 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.