Class BootHttpFileUploadRejector
java.lang.Object
io.netty.channel.ChannelHandlerAdapter
io.netty.channel.ChannelInboundHandlerAdapter
io.netty.channel.SimpleChannelInboundHandler<io.netty.handler.codec.http.HttpObject>
org.summerboot.jexpress.nio.server.BootHttpFileUploadHandler
org.summerboot.jexpress.nio.server.BootHttpFileUploadRejector
- All Implemented Interfaces:
io.netty.channel.ChannelHandler,io.netty.channel.ChannelInboundHandler
- Author:
- Changski Tie Zheng Zhang 张铁铮, 魏泽北, 杜旺财, 杜富贵
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.netty.channel.ChannelHandler
io.netty.channel.ChannelHandler.Sharable -
Field Summary
Fields inherited from class org.summerboot.jexpress.nio.server.BootHttpFileUploadHandler
log -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Callerauthenticate(io.netty.handler.codec.http.HttpHeaders httpHeaders, ServiceContext context) protected longprotected booleanisValidRequestPath(String httpRequestPath) protected voidonFileUploaded(io.netty.channel.ChannelHandlerContext ctx, String fileName, File file, Map<String, String> params, Caller caller) Methods inherited from class org.summerboot.jexpress.nio.server.BootHttpFileUploadHandler
channelInactive, channelRead0, exceptionCaughtMethods inherited from class io.netty.channel.SimpleChannelInboundHandler
acceptInboundMessage, channelReadMethods inherited from class io.netty.channel.ChannelInboundHandlerAdapter
channelActive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, userEventTriggeredMethods inherited from class io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, handlerAdded, handlerRemoved, isSharableMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.netty.channel.ChannelHandler
handlerAdded, handlerRemoved
-
Constructor Details
-
BootHttpFileUploadRejector
public BootHttpFileUploadRejector()
-
-
Method Details
-
isValidRequestPath
- Specified by:
isValidRequestPathin classBootHttpFileUploadHandler
-
authenticate
protected Caller authenticate(io.netty.handler.codec.http.HttpHeaders httpHeaders, ServiceContext context) - Specified by:
authenticatein classBootHttpFileUploadHandler
-
getCallerFileUploadSizeLimit_Bytes
- Specified by:
getCallerFileUploadSizeLimit_Bytesin classBootHttpFileUploadHandler
-
onFileUploaded
protected void onFileUploaded(io.netty.channel.ChannelHandlerContext ctx, String fileName, File file, Map<String, String> params, Caller caller) - Specified by:
onFileUploadedin classBootHttpFileUploadHandler
-