org.apache.wicket.response
Class NullResponse

java.lang.Object
  extended by org.apache.wicket.Response
      extended by org.apache.wicket.response.NullResponse

public class NullResponse
extends Response

Response implementation that discards all output.

Author:
Jonathan Locke

Method Summary
static NullResponse getInstance()
           
 OutputStream getOutputStream()
           
 void write(CharSequence string)
          Writes the given string to the Response subclass output destination.
 
Methods inherited from class org.apache.wicket.Response
close, detectContentType, encodeURL, filter, getCharacterEncoding, isRedirect, println, redirect, reset, setCharacterEncoding, setContentLength, setContentType, setLastModifiedTime, setLocale, write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static final NullResponse getInstance()
Returns:
The one and only instance of NullResponse

write

public void write(CharSequence 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(CharSequence)

getOutputStream

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


Copyright © 2004-2011 Apache Software Foundation. All Rights Reserved.