mirror of
https://gitee.com/BDWare/router-backend
synced 2025-01-25 01:04:05 +00:00
update files
This commit is contained in:
parent
09dd8618d9
commit
39fe0e22f3
@ -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<>();
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user