Class StringResponse


  • public class StringResponse
    extends org.apache.wicket.request.Response
    Response object that writes to a StringWriter. If the StringResponse is later converted to a String via toString(), the output which was written to the StringResponse will be returned as a String.
    Author:
    Jonathan Locke
    • Field Detail

      • out

        protected final org.apache.wicket.util.string.AppendingStringBuffer out
        StringWriter to write to
    • Constructor Detail

      • StringResponse

        public StringResponse​(int initialCapacity)
        Constructor
        Parameters:
        initialCapacity - the initial capacity of the internal buffer
    • Method Detail

      • write

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

        public void reset()
        Overrides:
        reset in class org.apache.wicket.request.Response
        See Also:
        Response.reset()
      • 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
      • getContainerResponse

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