fixed merge
This commit is contained in:
parent
2e3c223917
commit
200b3a3e64
|
@ -28,6 +28,12 @@ import org.eclipse.jetty.util.MultiPartInputStreamParser;
|
|||
|
||||
public class MultiPartCleanerListener implements ServletRequestListener
|
||||
{
|
||||
public final static MultiPartCleanerListener INSTANCE = new MultiPartCleanerListener();
|
||||
|
||||
protected MultiPartCleanerListener()
|
||||
{
|
||||
}
|
||||
|
||||
@Override
|
||||
public void requestDestroyed(ServletRequestEvent sre)
|
||||
{
|
||||
|
|
|
@ -292,7 +292,7 @@ public class RequestTest
|
|||
contextHandler.setContextPath("/foo");
|
||||
contextHandler.setResourceBase(".");
|
||||
contextHandler.setHandler(new BadMultiPartRequestHandler(testTmpDir));
|
||||
contextHandler.addEventListener(new Request.MultiPartCleanerListener()
|
||||
contextHandler.addEventListener(new MultiPartCleanerListener()
|
||||
{
|
||||
|
||||
@Override
|
||||
|
|
|
@ -696,7 +696,7 @@ public class ServletHolder extends Holder<Servlet> implements UserIdentity.Scope
|
|||
//servlet calling Request.getPart() or Request.getParts()
|
||||
|
||||
ContextHandler ch = ContextHandler.getContextHandler(getServletHandler().getServletContext());
|
||||
ch.addEventListener(new MultiPartCleanerListener());
|
||||
ch.addEventListener(MultiPartCleanerListener.INSTANCE);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue