Package org.apache.wicket.response
Class NullResponse
- java.lang.Object
-
- org.apache.wicket.request.Response
-
- org.apache.wicket.response.NullResponse
-
public class NullResponse extends Response
Response implementation that discards all output.- Author:
- Jonathan Locke
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
encodeURL(CharSequence url)
Encodes the specified URL by including the session ID in it, or, if encoding is not needed, returns the URL unchanged.Object
getContainerResponse()
Provides access to the low-level container response object that implementaion of thisResponse
delegate to.static NullResponse
getInstance()
void
write(byte[] array)
Writes the buffer to output.void
write(byte[] array, int offset, int length)
Writes the buffer to output.void
write(CharSequence string)
Writes theCharSequence
to output.-
Methods inherited from class org.apache.wicket.request.Response
close, getOutputStream, reset
-
-
-
-
Method Detail
-
getInstance
public static NullResponse getInstance()
- Returns:
- The one and only instance of NullResponse
-
write
public void write(CharSequence string)
Description copied from class:Response
Writes theCharSequence
to output.- Specified by:
write
in classResponse
- See Also:
Response.write(CharSequence)
-
write
public void write(byte[] array)
Description copied from class:Response
Writes the buffer to output.
-
write
public void write(byte[] array, int offset, int length)
Description copied from class:Response
Writes the buffer to output.
-
encodeURL
public String encodeURL(CharSequence url)
Description copied from class:Response
Encodes the specified URL by including the session ID in it, or, if encoding is not needed, returns the URL unchanged.
-
getContainerResponse
public Object getContainerResponse()
Description copied from class:Response
Provides access to the low-level container response object that implementaion of thisResponse
delegate to. This allows users to access features provided by the container response but not by generalized WicketResponse
objects.- Specified by:
getContainerResponse
in classResponse
- Returns:
- low-level container response object, or
null
if none
-
-