Package org.apache.wicket.response
Class StringResponse
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) void
reset()
toString()
void
write
(byte[] array) void
write
(byte[] array, int offset, int length) void
write
(CharSequence string) Methods inherited from class org.apache.wicket.request.Response
close, getOutputStream
-
Constructor Details
-
StringResponse
public StringResponse() -
StringResponse
-
-
Method Details
-
write
- Specified by:
write
in classorg.apache.wicket.request.Response
- See Also:
-
Response.write(CharSequence)
-
reset
- Overrides:
reset
in classorg.apache.wicket.request.Response
- See Also:
-
Response.reset()
-
toString
-
getBuffer
- Returns:
- The internal buffer as a
CharSequence
or an empty string if no content has been written to the response
-
write
- Specified by:
write
in classorg.apache.wicket.request.Response
-
write
- Specified by:
write
in classorg.apache.wicket.request.Response
-
encodeURL
- Specified by:
encodeURL
in classorg.apache.wicket.request.Response
-
getContainerResponse
- Specified by:
getContainerResponse
in classorg.apache.wicket.request.Response
-