public interface Response
| Modifier and Type | Method and Description |
|---|---|
OutputStream |
getOutputStream()
Returns an OutputStream suitable for writing binary data in the response.
|
void |
setContentLength(int length)
Sets the length of the content body in the response.
|
void |
setContentType(String mimeType)
Sets the content type of the response being sent to the client, as a MIME type string.
|
OutputStream getOutputStream() throws IOException
null if the response does not allow writing dataIOException - if an output exception occurredvoid setContentLength(int length)
length - an integer specifying the length of the content being returned to the clientvoid setContentType(String mimeType)
text/html. If the MIME type is not relevant to the type of connection, it will simply be ignored.mimeType - the MIME type for this response, according to the RFC 2045.Copyright © 2004–2017 XWiki. All rights reserved.