Jetty: Refactor (rather than remove) RequestWrapper to use Servlet 3.0 API.

Remove old org.mortbay helper classes copied from Jetty 5, saving about 24 KB.
Large attachments will now be written to temp files. (ticket #2109)
This commit is contained in:
zzz
2017-12-04 16:08:03 +00:00
parent 14941d0dda
commit c299976165
10 changed files with 118 additions and 1424 deletions

View File

@ -445,6 +445,23 @@
<replace file="../jsp/web-out.xml">
<replacefilter token="&lt;!-- precompiled servlets --&gt;" value="${jspc.web.fragment}" />
</replace>
<!-- Add multipart config to servlets that need them -->
<property name="__match1" value="&lt;servlet-class&gt;net.i2p.router.web.jsp." />
<property name="__match2" value="_jsp&lt;/servlet-class&gt;" />
<property name="__class1" value="${__match1}configclients${__match2}" />
<property name="__class2" value="${__match1}configfamily${__match2}" />
<property name="__class3" value="${__match1}configreseed${__match2}" />
<property name="__multipart" value="&#10;
&lt;multipart-config&gt;&#10;
&lt;max-file-size&gt;67108864&lt;/max-file-size&gt;&#10;
&lt;max-request-size&gt;67108864&lt;/max-request-size&gt;&#10;
&lt;file-size-threshold&gt;262144&lt;/file-size-threshold&gt;&#10;
&lt;/multipart-config&gt;" />
<replace file="../jsp/web-out.xml">
<replacefilter token="${__class1}" value="${__class1}${__multipart}" />
<replacefilter token="${__class2}" value="${__class2}${__multipart}" />
<replacefilter token="${__class3}" value="${__class3}${__multipart}" />
</replace>
</target>
<uptodate property="precompilejsp.uptodate" targetfile="../jsp/web-out.xml">