去除tomcat,不再使用第三方容器,而是直接采用jdk自带的HttpServer来做http服务

This commit is contained in:
yuye
2020-06-08 14:53:17 +08:00
parent 8f14a5b85e
commit b519db2d69
2 changed files with 4 additions and 1 deletions
@@ -19,6 +19,8 @@ import java.util.Map;
/**
* HttpMarsRequest工厂
*
* @author yuye
*/
public class HttpMarsRequestFactory {
@@ -58,7 +60,7 @@ public class HttpMarsRequestFactory {
files = (Map<String, MarsFileUpLoad>) result.get(ParsingFormData.FILES_KEY);
marsParams = (Map<String, List<String>>) result.get(ParsingFormData.PARAMS_KEY);
} else if (contentType.startsWith("application/json")) {
/* RAW提交json */
/* RAW提交(json) */
marsParams = raw(inputStream, marsParams);
}
}
@@ -30,6 +30,7 @@ import static java.lang.String.format;
/**
* 这个类拷贝自apache的common-fileupload项目
* 做了少量的修改,将servletRequest换成了HttpExchange,同时修改了多个方法的实现
* 类名也做了更改
*
* <p>Provides access to the request information needed for a request made to
* an HTTP servlet.</p>