@Internal public class NettyStreamedFileCustomizableResponseType extends StreamedFile implements NettyFileCustomizableResponseType, NettyStreamedCustomizableResponseType
InputStream
to the Netty context.ATTACHMENT_HEADER
LOG
Constructor and Description |
---|
NettyStreamedFileCustomizableResponseType(InputStream inputStream,
MediaType mediaType) |
NettyStreamedFileCustomizableResponseType(InputStream inputStream,
String name) |
NettyStreamedFileCustomizableResponseType(StreamedFile delegate) |
NettyStreamedFileCustomizableResponseType(URL url) |
Modifier and Type | Method and Description |
---|---|
void |
process(MutableHttpResponse response)
Modify the response before it is written to the client.
|
attach, getInputStream, getLastModified, getLength, getMediaType
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getLastModified, getLength, getMediaType
getInputStream, write
public NettyStreamedFileCustomizableResponseType(InputStream inputStream, String name)
inputStream
- The input streamname
- The file namepublic NettyStreamedFileCustomizableResponseType(InputStream inputStream, MediaType mediaType)
inputStream
- The input streammediaType
- The file media typepublic NettyStreamedFileCustomizableResponseType(URL url)
url
- The URLpublic NettyStreamedFileCustomizableResponseType(StreamedFile delegate)
delegate
- The streamed filepublic void process(MutableHttpResponse response)
CustomizableResponseType
process
in interface NettyStreamedCustomizableResponseType
process
in interface CustomizableResponseType
process
in class StreamedFile
response
- The response to modify