@Internal public class NettySystemFileCustomizableResponseType extends SystemFile implements NettyFileCustomizableResponseType
File to the Netty context.| Modifier and Type | Field and Description |
|---|---|
protected Optional<FileCustomizableResponseType> |
delegate |
ATTACHMENT_HEADER| Constructor and Description |
|---|
NettySystemFileCustomizableResponseType(File file) |
NettySystemFileCustomizableResponseType(SystemFile delegate) |
| Modifier and Type | Method and Description |
|---|---|
long |
getLastModified() |
MediaType |
getMediaType() |
void |
process(MutableHttpResponse response)
Modify the response before it is written to the client.
|
io.netty.channel.ChannelFuture |
write(HttpRequest<?> request,
MutableHttpResponse<?> response,
io.netty.channel.ChannelHandlerContext context)
Write this instance to Netty.
|
attach, attach, getFile, getLengthclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetLengthprotected Optional<FileCustomizableResponseType> delegate
public NettySystemFileCustomizableResponseType(File file)
file - The filepublic NettySystemFileCustomizableResponseType(SystemFile delegate)
delegate - The system file customizable response typepublic long getLastModified()
getLastModified in interface FileCustomizableResponseTypegetLastModified in class SystemFilepublic MediaType getMediaType()
getMediaType in interface FileCustomizableResponseTypegetMediaType in class SystemFilepublic void process(MutableHttpResponse response)
CustomizableResponseTypeprocess in interface CustomizableResponseTypeprocess in class SystemFileresponse - The response to modifypublic io.netty.channel.ChannelFuture write(HttpRequest<?> request, MutableHttpResponse<?> response, io.netty.channel.ChannelHandlerContext context)
NettyCustomizableResponseTypewrite in interface NettyCustomizableResponseTyperequest - The requestresponse - The responsecontext - The Netty ChannelHandlerContext