public class BufferedWebResponse extends org.apache.wicket.request.http.WebResponse implements IMetaDataBufferingWebResponse
WebResponse
that buffers the actions and performs those on another response.writeTo(WebResponse)
Constructor and Description |
---|
BufferedWebResponse(org.apache.wicket.request.http.WebResponse originalResponse)
Construct.
|
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) |
void |
disableCaching() |
String |
encodeRedirectURL(CharSequence url) |
String |
encodeURL(CharSequence url) |
void |
flush() |
Object |
getContainerResponse() |
CharSequence |
getText()
Returns the text already written to this response.
|
boolean |
isRedirect() |
void |
reset() |
void |
sendError(int sc,
String msg) |
void |
sendRedirect(String url) |
void |
setContentLength(long length) |
void |
setContentType(String mimeType) |
void |
setDateHeader(String name,
org.apache.wicket.util.time.Time date) |
void |
setHeader(String name,
String value) |
void |
setStatus(int sc) |
void |
setText(CharSequence text)
Replaces the text in this response
|
String |
toString() |
void |
write(byte[] array) |
void |
write(byte[] array,
int offset,
int length) |
void |
write(CharSequence sequence) |
void |
writeMetaData(org.apache.wicket.request.http.WebResponse response)
transfer cookie operations (add, clear) to given web response
|
void |
writeTo(org.apache.wicket.request.http.WebResponse response)
Writes the content of the buffer to the specified response.
|
public BufferedWebResponse(org.apache.wicket.request.http.WebResponse originalResponse)
originalResponse
- public void writeMetaData(org.apache.wicket.request.http.WebResponse response)
writeMetaData
in interface IMetaDataBufferingWebResponse
response
- web response that should receive the current cookie operationpublic String encodeURL(CharSequence url)
encodeURL
in class org.apache.wicket.request.Response
public String encodeRedirectURL(CharSequence url)
encodeRedirectURL
in class org.apache.wicket.request.http.WebResponse
public void reset()
reset
in class org.apache.wicket.request.Response
public void addCookie(javax.servlet.http.Cookie cookie)
addCookie
in class org.apache.wicket.request.http.WebResponse
public void clearCookie(javax.servlet.http.Cookie cookie)
clearCookie
in class org.apache.wicket.request.http.WebResponse
public void setContentLength(long length)
setContentLength
in class org.apache.wicket.request.http.WebResponse
public void setContentType(String mimeType)
setContentType
in class org.apache.wicket.request.http.WebResponse
public void setDateHeader(String name, org.apache.wicket.util.time.Time date)
setDateHeader
in class org.apache.wicket.request.http.WebResponse
public void setHeader(String name, String value)
setHeader
in class org.apache.wicket.request.http.WebResponse
public void addHeader(String name, String value)
addHeader
in class org.apache.wicket.request.http.WebResponse
public void disableCaching()
disableCaching
in class org.apache.wicket.request.http.WebResponse
public void write(CharSequence sequence)
write
in class org.apache.wicket.request.Response
public CharSequence getText()
public void setText(CharSequence text)
text
- public void write(byte[] array)
write
in class org.apache.wicket.request.Response
public void write(byte[] array, int offset, int length)
write
in class org.apache.wicket.request.Response
public void sendRedirect(String url)
sendRedirect
in class org.apache.wicket.request.http.WebResponse
public void setStatus(int sc)
setStatus
in class org.apache.wicket.request.http.WebResponse
public void sendError(int sc, String msg)
sendError
in class org.apache.wicket.request.http.WebResponse
public void writeTo(org.apache.wicket.request.http.WebResponse response)
response
- public boolean isRedirect()
isRedirect
in class org.apache.wicket.request.http.WebResponse
public void flush()
flush
in class org.apache.wicket.request.http.WebResponse
public String toString()
toString
in class Object
Object.toString()
public Object getContainerResponse()
getContainerResponse
in class org.apache.wicket.request.Response
Copyright © 2006–2019 Apache Software Foundation. All rights reserved.