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 Details

    • 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 the CharSequence to output.
      Specified by:
      write in class Response
      See Also:
    • write

      public void write(byte[] array)
      Description copied from class: Response
      Writes the buffer to output.
      Specified by:
      write in class Response
      Parameters:
      array - the data.
    • write

      public void write(byte[] array, int offset, int length)
      Description copied from class: Response
      Writes the buffer to output.
      Specified by:
      write in class Response
      Parameters:
      array - the data.
      offset - the start offset in the data.
      length - the number of bytes to write.
    • encodeURL

      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.
      Specified by:
      encodeURL in class Response
      Returns:
      encoded URL
    • getContainerResponse

      Description copied from class: Response
      Provides access to the low-level container response object that implementaion of this Response delegate to. This allows users to access features provided by the container response but not by generalized Wicket Response objects.
      Specified by:
      getContainerResponse in class Response
      Returns:
      low-level container response object, or null if none