public interface StreamResponse
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getContentType()
Returns the content type to be reported to the client.
|
java.io.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.
|
java.lang.String getContentType()
java.io.InputStream getStream() throws java.io.IOException
BufferedInputStream for efficiency.java.io.IOExceptionvoid prepareResponse(Response response)
response - Response that will be sent.${project.version} - Copyright © 2003-2015 The Apache Software Foundation.