Class NullResponse


  • public class NullResponse
    extends org.apache.wicket.request.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
      java.lang.String encodeURL​(java.lang.CharSequence url)  
      java.lang.Object getContainerResponse()  
      static NullResponse getInstance()  
      void write​(byte[] array)  
      void write​(byte[] array, int offset, int length)  
      void write​(java.lang.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 NullResponse getInstance()
        Returns:
        The one and only instance of NullResponse
      • write

        public void write​(java.lang.CharSequence string)
        Specified by:
        write in class org.apache.wicket.request.Response
        See Also:
        Response.write(CharSequence)
      • write

        public void write​(byte[] array)
        Specified by:
        write in class org.apache.wicket.request.Response
      • write

        public void write​(byte[] array,
                          int offset,
                          int length)
        Specified by:
        write in class org.apache.wicket.request.Response
      • encodeURL

        public java.lang.String encodeURL​(java.lang.CharSequence url)
        Specified by:
        encodeURL in class org.apache.wicket.request.Response
      • getContainerResponse

        public java.lang.Object getContainerResponse()
        Specified by:
        getContainerResponse in class org.apache.wicket.request.Response