Class LazyStringResponse


  • @Deprecated(since="9.13.0",
                forRemoval=true)
    public class LazyStringResponse
    extends 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.
      Encodes the specified URL by including the session ID in it, or, if encoding is not needed, returns the URL unchanged.
      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.
      Provides access to the low-level container response object that implementaion of this Response delegate to.
      void reset()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Called when the Response needs to reset itself.
      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.
      Writes the buffer to output.
      void write​(byte[] array, int offset, int length)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Writes the buffer to output.
      void write​(CharSequence string)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Writes the CharSequence to output.
    • 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

      • reset

        public void reset()
        Deprecated, for removal: This API element is subject to removal in a future version.
        Description copied from class: Response
        Called when the Response needs to reset itself. Subclasses can empty there buffer or build up state.
        Overrides:
        reset in class 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.
        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)
        Deprecated, for removal: This API element is subject to removal in a future version.
        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

        public String encodeURL​(CharSequence url)
        Deprecated, for removal: This API element is subject to removal in a future version.
        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

        public Object getContainerResponse()
        Deprecated, for removal: This API element is subject to removal in a future version.
        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