Class LazyStringResponse


  • @Deprecated(since="9.13.0",
                forRemoval=true)
    public class LazyStringResponse
    extends org.apache.wicket.request.Response
    Deprecated, for removal: This API element is subject to removal in a future version.
    In Wicket 10 StringResponse will be made lazy and this class will be removed
    Response object that writes to an AppendingStringBuffer. This class is functionally equivalent to StringResponse, but defers creating the buffer until it is needed.
    Author:
    Thomas Heigl
    • Constructor Summary

      Constructors 
      Constructor Description
      LazyStringResponse()
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      LazyStringResponse​(int initialCapacity)
      Deprecated, for removal: This API element is subject to removal in a future version.
       
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      String encodeURL​(CharSequence url)
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      CharSequence getBuffer()
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      Object getContainerResponse()
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      void reset()
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      String toString()
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      void write​(byte[] array)
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      void write​(byte[] array, int offset, int length)
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      void write​(CharSequence string)
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      • Methods inherited from class org.apache.wicket.request.Response

        close, getOutputStream
    • Constructor Detail

      • LazyStringResponse

        public LazyStringResponse()
        Deprecated, for removal: This API element is subject to removal in a future version.
      • LazyStringResponse

        public LazyStringResponse​(int initialCapacity)
        Deprecated, for removal: This API element is subject to removal in a future version.
    • Method Detail

      • write

        public void write​(CharSequence string)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Specified by:
        write in class org.apache.wicket.request.Response
        See Also:
        Response.write(CharSequence)
      • reset

        public void reset()
        Deprecated, for removal: This API element is subject to removal in a future version.
        Overrides:
        reset in class org.apache.wicket.request.Response
        See Also:
        Response.reset()
      • getBuffer

        public CharSequence getBuffer()
        Deprecated, for removal: This API element is subject to removal in a future version.
        Returns:
        The internal buffer as a CharSequence or an empty string if no content has been written to the response
      • write

        public void write​(byte[] array)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Specified by:
        write in class org.apache.wicket.request.Response
      • write

        public void write​(byte[] array,
                          int offset,
                          int length)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Specified by:
        write in class org.apache.wicket.request.Response
      • encodeURL

        public String encodeURL​(CharSequence url)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Specified by:
        encodeURL in class org.apache.wicket.request.Response
      • getContainerResponse

        public Object getContainerResponse()
        Deprecated, for removal: This API element is subject to removal in a future version.
        Specified by:
        getContainerResponse in class org.apache.wicket.request.Response