update files

This commit is contained in:
CaiHQ 2022-05-26 15:57:05 +08:00
parent 09dd8618d9
commit 39fe0e22f3
2 changed files with 5 additions and 5 deletions

View File

@ -53,9 +53,8 @@ public class FileActions {
method = org.bdware.server.http.HttpMethod.POST,
value = {"/upload"})
public static void handleUploadRequest(ChannelHandlerContext ctx, FullHttpRequest request) {
// logger.info("[CMHttpHandler] handleUploadRequest : ");
LOGGER.info("[FileActions] handleUploadRequest : ");
// Upload method is POST
QueryStringDecoder decoderQuery = new QueryStringDecoder(request.uri());
Map<String, List<String>> params = decoderQuery.parameters();
Map<String, String> transformedParam = new HashMap<>();

View File

@ -86,7 +86,8 @@ public class NCHttpHandler extends SimpleChannelInboundHandler<HttpObject> {
return flag && flag2;
}
};
static TypeToken<Map<String, String>> token = new TypeToken<Map<String, String>>() {};
static TypeToken<Map<String, String>> token = new TypeToken<Map<String, String>>() {
};
private final HttpFileHandleAdapter fileAdapter;
// public static ExecutorService executor = Executors.newFixedThreadPool(5);
public AtomicInteger counter = new AtomicInteger(0);
@ -196,8 +197,8 @@ public class NCHttpHandler extends SimpleChannelInboundHandler<HttpObject> {
@Override
public void channelRead0(ChannelHandlerContext ctx, HttpObject msg) {
// logger.debug("[NCHttpHandler] TID:" + Thread.currentThread().getId() +
// msg.toString());
LOGGER.debug("[NCHttpHandler] TID:" + Thread.currentThread().getId() +
msg.toString());
if (msg instanceof FullHttpRequest) {
FullHttpRequest request = (FullHttpRequest) msg;
handler.handle(ctx, request);