org.apache.wicket.response
Class NullResponse

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

public class NullResponse
extends Response

Response implementation that discards all output.

Author:
Jonathan Locke

Method Summary
 String encodeURL(CharSequence url)
           
 Object getContainerResponse()
           
static NullResponse getInstance()
           
 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, reset
 
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)
Specified by:
write in class Response
See Also:
Response.write(CharSequence)

write

public void write(byte[] array)
Specified by:
write in class Response

write

public void write(byte[] array,
                  int offset,
                  int length)
Specified by:
write in class Response

encodeURL

public String encodeURL(CharSequence url)
Specified by:
encodeURL in class Response

getContainerResponse

public Object getContainerResponse()
Specified by:
getContainerResponse in class Response


Copyright © 2006-2013 Apache Software Foundation. All Rights Reserved.