|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectwicket.Response
wicket.response.BufferedResponse
Holds a rendered response for future use.
ApplicationSettings.RenderStrategy| Constructor Summary | |
BufferedResponse()
Construct. |
|
| Method Summary | |
void |
close()
Closes the response output stream |
byte[] |
getBytes()
Get the bytes of this buffered response string in the encoding of the mime type. |
int |
getContentLength()
Gets the content length. |
java.lang.String |
getContentType()
Get the content mime type. |
java.io.OutputStream |
getOutputStream()
|
java.lang.String |
getRedirectUrl()
The url to be used to issue a client side redirect request; when a request to the url comes in, this buffered response is streamed to the browser. |
java.lang.String |
getString()
Prior to closing the response, the current content of the buffer. |
void |
redirect(java.lang.String url)
A subclass may override this method to implement redirection. |
void |
setContentType(java.lang.String mimeType)
Sets the content mimetype. |
void |
write(java.lang.String string)
Writes the given string to the Response subclass output destination. |
| Methods inherited from class wicket.Response |
encodeURL, getCharacterEncoding, isRedirect, setCharacterEncoding, setContentLength, setLastModifiedTime, setLocale, write |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public BufferedResponse()
| Method Detail |
public final java.lang.String getRedirectUrl()
public final int getContentLength()
Note: Prior to closing the response, the number of characters is returned. After closing, the number of bytes is returned, which depending on the encoding and the characters might be larger.
public final java.lang.String getContentType()
public final void setContentType(java.lang.String mimeType)
setContentType in class ResponsemimeType - public final void redirect(java.lang.String url)
Response
redirect in class Responseurl - The URL to redirect toResponse.redirect(java.lang.String)public final java.io.OutputStream getOutputStream()
getOutputStream in class ResponseResponse.getOutputStream()public final void write(java.lang.String string)
Response
write in class Responsestring - The string to writeResponse.write(java.lang.String)public final void close()
Response
close in class ResponseResponse.close()public final byte[] getBytes()
public final java.lang.String getString()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||