Class NettyStreamedFileCustomizableResponseType
java.lang.Object
io.micronaut.http.server.types.files.StreamedFile
io.micronaut.http.server.netty.types.files.NettyStreamedFileCustomizableResponseType
- All Implemented Interfaces:
NettyCustomizableResponseType
,NettyFileCustomizableResponseType
,NettyStreamedCustomizableResponseType
,CustomizableResponseType
,FileCustomizableResponseType
@Internal
public class NettyStreamedFileCustomizableResponseType
extends StreamedFile
implements NettyFileCustomizableResponseType, NettyStreamedCustomizableResponseType
Writes a file backed by an
InputStream
to the Netty context.- Since:
- 1.0
- Author:
- James Kleeh
-
Field Summary
Fields inherited from interface io.micronaut.http.server.types.files.FileCustomizableResponseType
ATTACHMENT_HEADER
Fields inherited from interface io.micronaut.http.server.netty.types.stream.NettyStreamedCustomizableResponseType
LOG
-
Constructor Summary
ConstructorDescriptionNettyStreamedFileCustomizableResponseType
(InputStream inputStream, MediaType mediaType) NettyStreamedFileCustomizableResponseType
(InputStream inputStream, String name) -
Method Summary
Modifier and TypeMethodDescriptionvoid
process
(MutableHttpResponse response) Modify the response before it is written to the client.Methods inherited from class io.micronaut.http.server.types.files.StreamedFile
attach, getInputStream, getLastModified, getLength, getMediaType
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.micronaut.http.server.types.files.FileCustomizableResponseType
getLastModified, getLength, getMediaType
Methods inherited from interface io.micronaut.http.server.netty.types.stream.NettyStreamedCustomizableResponseType
getInputStream, write
-
Constructor Details
-
NettyStreamedFileCustomizableResponseType
- Parameters:
inputStream
- The input streamname
- The file name
-
NettyStreamedFileCustomizableResponseType
- Parameters:
inputStream
- The input streammediaType
- The file media type
-
NettyStreamedFileCustomizableResponseType
- Parameters:
url
- The URL
-
NettyStreamedFileCustomizableResponseType
- Parameters:
delegate
- The streamed file
-
-
Method Details
-
process
Description copied from interface:CustomizableResponseType
Modify the response before it is written to the client.- Specified by:
process
in interfaceCustomizableResponseType
- Specified by:
process
in interfaceNettyStreamedCustomizableResponseType
- Overrides:
process
in classStreamedFile
- Parameters:
response
- The response to modify
-