public interface StreamResponse
Modifier and Type | Method and Description |
---|---|
String |
getContentType()
Returns the content type to be reported to the client.
|
InputStream |
getStream()
Returns the stream of bytes to be sent to the client.
|
void |
prepareResponse(Response response)
Prepares the response before it is sent to the client.
|
String getContentType()
InputStream getStream() throws IOException
BufferedInputStream
for efficiency.IOException
void prepareResponse(Response response)
response
- Response that will be sent.${project.version} - Copyright © 2003-2015 The Apache Software Foundation.