Package org.apache.wicket.response
Class LazyStringResponse
- java.lang.Object
-
- org.apache.wicket.request.Response
-
- org.apache.wicket.response.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 10StringResponse
will be made lazy and this class will be removedResponse object that writes to an AppendingStringBuffer. This class is functionally equivalent toStringResponse
, 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 thisResponse
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 theCharSequence
to output.-
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.Description copied from class:Response
Writes theCharSequence
to output.- Specified by:
write
in classResponse
- See Also:
Response.write(CharSequence)
-
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 classResponse
- See Also:
Response.reset()
-
toString
public String toString()
Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
toString
in classObject
- See Also:
Object.toString()
-
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.
-
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.
-
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.
-
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 thisResponse
delegate to. This allows users to access features provided by the container response but not by generalized WicketResponse
objects.- Specified by:
getContainerResponse
in classResponse
- Returns:
- low-level container response object, or
null
if none
-
-