wicket.protocol.http
Class BufferedWebResponse

java.lang.Object
  extended bywicket.Response
      extended bywicket.protocol.http.WebResponse
          extended bywicket.protocol.http.BufferedWebResponse

public class BufferedWebResponse
extends WebResponse

Subclass of WebResponse which buffers output and any redirection.

Author:
Jonathan Locke

Field Summary
 
Fields inherited from class wicket.protocol.http.WebResponse
redirect
 
Constructor Summary
(package private) BufferedWebResponse()
          Constructor for testing harness.
(package private) BufferedWebResponse(javax.servlet.http.HttpServletResponse httpServletResponse)
          Package private constructor.
 
Method Summary
 void close()
          Flushes the response buffer by doing a redirect or writing out the buffer.
 void redirect(java.lang.String url)
          Saves url to redirect to when buffered response is flushed.
 void write(java.lang.String string)
          Writes string to response output.
 
Methods inherited from class wicket.protocol.http.WebResponse
encodeURL, getHttpServletResponse, getOutputStream, isRedirect, setContentLength, setContentType, setDateHeader, setHeader, setLastModifiedTime, setLocale
 
Methods inherited from class wicket.Response
getCharacterEncoding, setCharacterEncoding, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BufferedWebResponse

BufferedWebResponse()
Constructor for testing harness.


BufferedWebResponse

BufferedWebResponse(javax.servlet.http.HttpServletResponse httpServletResponse)
Package private constructor.

Parameters:
httpServletResponse - The servlet response object
Method Detail

close

public void close()
Flushes the response buffer by doing a redirect or writing out the buffer. NOTE: The servlet container will close the response output stream.

Overrides:
close in class WebResponse

redirect

public final void redirect(java.lang.String url)
Saves url to redirect to when buffered response is flushed.

Overrides:
redirect in class WebResponse
Parameters:
url - The URL to redirect to

write

public void write(java.lang.String string)
Writes string to response output.

Overrides:
write in class WebResponse
Parameters:
string - The string to write


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