java.lang.Object
org.apache.wicket.request.Response
org.apache.wicket.response.StringResponse
Response object that writes to an AppendingStringBuffer. If the StringResponse is later converted to a
String via toString(), the output which was written to the StringResponse will be returned as a
String.
- Author:
- Jonathan Locke
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionencodeURL
(CharSequence url) Encodes the specified URL by including the session ID in it, or, if encoding is not needed, returns the URL unchanged.Provides access to the low-level container response object that implementaion of thisResponse
delegate to.void
reset()
Called when the Response needs to reset itself.toString()
void
write
(byte[] array) Writes the buffer to output.void
write
(byte[] array, int offset, int length) Writes the buffer to output.void
write
(CharSequence string) Writes theCharSequence
to output.Methods inherited from class org.apache.wicket.request.Response
close, getOutputStream
-
Constructor Details
-
StringResponse
public StringResponse() -
StringResponse
-
-
Method Details
-
write
Description copied from class:Response
Writes theCharSequence
to output. -
reset
Description copied from class:Response
Called when the Response needs to reset itself. Subclasses can empty there buffer or build up state. -
toString
-
getBuffer
- Returns:
- The internal buffer as a
CharSequence
or an empty string if no content has been written to the response
-
write
Description copied from class:Response
Writes the buffer to output. -
write
Description copied from class:Response
Writes the buffer to output. -
encodeURL
Description copied from class:Response
Encodes the specified URL by including the session ID in it, or, if encoding is not needed, returns the URL unchanged. -
getContainerResponse
Description copied from class:Response
Provides access to the low-level container response object that implementaion of thisResponse
delegate to. This allows users to access features provided by the container response but not by generalized WicketResponse
objects.- Specified by:
getContainerResponse
in classResponse
- Returns:
- low-level container response object, or
null
if none
-