mirror of
https://github.com/wahyd4/Martian.git
synced 2026-08-08 21:06:40 +10:00
去除tomcat,不再使用第三方容器,而是直接采用jdk自带的HttpServer来做http服务
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
+1
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user