forked from I2P_Developers/i2p.i2p
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:
@ -445,6 +445,23 @@
|
||||
<replace file="../jsp/web-out.xml">
|
||||
<replacefilter token="<!-- precompiled servlets -->" value="${jspc.web.fragment}" />
|
||||
</replace>
|
||||
<!-- Add multipart config to servlets that need them -->
|
||||
<property name="__match1" value="<servlet-class>net.i2p.router.web.jsp." />
|
||||
<property name="__match2" value="_jsp</servlet-class>" />
|
||||
<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="
|
||||
<multipart-config>
|
||||
<max-file-size>67108864</max-file-size>
|
||||
<max-request-size>67108864</max-request-size>
|
||||
<file-size-threshold>262144</file-size-threshold>
|
||||
</multipart-config>" />
|
||||
<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">
|
||||
|
Reference in New Issue
Block a user