protected static final class PartialPageUpdate.ResponseBuffer extends WebResponse
getContents()
,
reset()
WebResponse.CacheScope
MAX_CACHE_DURATION
Modifier and Type | Method and Description |
---|---|
void |
addCookie(javax.servlet.http.Cookie cookie) |
void |
addHeader(String name,
String value) |
void |
clearCookie(javax.servlet.http.Cookie cookie) |
String |
encodeRedirectURL(CharSequence url) |
String |
encodeURL(CharSequence url) |
void |
flush() |
Object |
getContainerResponse() |
CharSequence |
getContents() |
boolean |
isRedirect() |
void |
reset()
Resets the response to a clean state so it can be reused to save on garbage.
|
void |
sendError(int sc,
String msg) |
void |
sendRedirect(String url) |
void |
setContentLength(long length) |
void |
setContentType(String mimeType) |
void |
setDateHeader(String name,
Time date) |
void |
setHeader(String name,
String value) |
void |
setStatus(int sc) |
void |
write(byte[] array) |
void |
write(byte[] array,
int offset,
int length) |
void |
write(CharSequence cs) |
disableCaching, enableCaching, setAcceptRange, setAttachmentHeader, setContentRange, setInlineHeader, setLastModifiedTime
close, getOutputStream
public String encodeURL(CharSequence url)
encodeURL
in class Response
Response.encodeURL(CharSequence)
public CharSequence getContents()
public void write(CharSequence cs)
write
in class Response
Response.write(CharSequence)
public void reset()
public Object getContainerResponse()
getContainerResponse
in class Response
public void addCookie(javax.servlet.http.Cookie cookie)
addCookie
in class WebResponse
public void clearCookie(javax.servlet.http.Cookie cookie)
clearCookie
in class WebResponse
public void setHeader(String name, String value)
setHeader
in class WebResponse
public void addHeader(String name, String value)
addHeader
in class WebResponse
public void setDateHeader(String name, Time date)
setDateHeader
in class WebResponse
public void setContentLength(long length)
setContentLength
in class WebResponse
public void setContentType(String mimeType)
setContentType
in class WebResponse
public void setStatus(int sc)
setStatus
in class WebResponse
public void sendError(int sc, String msg)
sendError
in class WebResponse
public String encodeRedirectURL(CharSequence url)
encodeRedirectURL
in class WebResponse
public void sendRedirect(String url)
sendRedirect
in class WebResponse
public boolean isRedirect()
isRedirect
in class WebResponse
public void flush()
flush
in class WebResponse
Copyright © 2006–2015 Apache Software Foundation. All rights reserved.