public class ByteArrayResponse extends Response
Constructor and Description |
---|
ByteArrayResponse()
Constructor
|
ByteArrayResponse(Response original)
Constructor
|
Modifier and Type | Method and Description |
---|---|
String |
encodeURL(CharSequence url)
Encodes the specified URL by including the session ID in it, or, if encoding is not needed,
returns the URL unchanged.
|
byte[] |
getBytes() |
Object |
getContainerResponse()
Provides access to the low-level container response object that implementaion of this
Response delegate to. |
void |
reset()
Called when the Response needs to reset itself.
|
void |
write(byte[] array)
Writes the buffer to output.
|
void |
write(byte[] array,
int offset,
int length)
Writes the buffer to output.
|
void |
write(CharSequence string)
Writes the
CharSequence to output. |
close, getOutputStream
public ByteArrayResponse(Response original)
original
- public ByteArrayResponse()
public byte[] getBytes()
public void write(CharSequence string)
Response
CharSequence
to output.write
in class Response
Response.write(CharSequence)
public void reset()
Response
reset
in class Response
Response.reset()
public void write(byte[] array)
Response
write
in class Response
array
- the data.Response.getOutputStream()
public void write(byte[] array, int offset, int length)
Response
public String encodeURL(CharSequence url)
Response
public Object getContainerResponse()
Response
Response
delegate to. This allows users to access features provided by the container
response but not by generalized Wicket Response
objects.getContainerResponse
in class Response
null
if noneCopyright © 2006–2022 Apache Software Foundation. All rights reserved.