wicket.response
Class StringResponse

java.lang.Object
  extended bywicket.Response
      extended bywicket.response.StringResponse
Direct Known Subclasses:
BufferedResponse

public class StringResponse
extends Response

Response object that writes to a StringWriter. 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

Field Summary
protected  java.io.StringWriter out
          StringWriter to write to
 
Constructor Summary
StringResponse()
          Constructor
 
Method Summary
 java.io.OutputStream getOutputStream()
           
 java.lang.String toString()
           
 void write(java.lang.String string)
          Writes the given string to the Response subclass output destination.
 
Methods inherited from class wicket.Response
close, encodeURL, isRedirect, redirect, setContentLength, setContentType, setLastModifiedTime, setLocale, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

out

protected final java.io.StringWriter out
StringWriter to write to

Constructor Detail

StringResponse

public StringResponse()
Constructor

Method Detail

write

public void write(java.lang.String string)
Description copied from class: Response
Writes the given string to the Response subclass output destination.

Specified by:
write in class Response
Parameters:
string - The string to write
See Also:
Response.write(java.lang.String)

toString

public java.lang.String toString()
See Also:
Object.toString()

getOutputStream

public java.io.OutputStream getOutputStream()
Specified by:
getOutputStream in class Response
Returns:
The output stream for this response
See Also:
Response.getOutputStream()


Copyright © 2004-2005 Wicket developers. All Rights Reserved.