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 org.apache.wicket.request.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.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.
-
-
-
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 classorg.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 classorg.apache.wicket.request.Response
- 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.- Specified by:
write
in classorg.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 classorg.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 classorg.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 classorg.apache.wicket.request.Response
-
-