Package org.eclipse.jetty.server
Class MultiParts.MultiPartsHttpParser
- java.lang.Object
-
- org.eclipse.jetty.server.MultiParts.MultiPartsHttpParser
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
,MultiParts
- Enclosing interface:
- MultiParts
public static class MultiParts.MultiPartsHttpParser extends java.lang.Object implements MultiParts
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.eclipse.jetty.server.MultiParts
MultiParts.MultiPartsHttpParser, MultiParts.MultiPartsUtilParser
-
-
Constructor Summary
Constructors Constructor Description MultiPartsHttpParser(java.io.InputStream in, java.lang.String contentType, javax.servlet.MultipartConfigElement config, java.io.File contextTmpDir, Request request)
MultiPartsHttpParser(java.io.InputStream in, java.lang.String contentType, javax.servlet.MultipartConfigElement config, java.io.File contextTmpDir, Request request, int maxParts)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
ContextHandler.Context
getContext()
javax.servlet.http.Part
getPart(java.lang.String name)
java.util.Collection<javax.servlet.http.Part>
getParts()
boolean
isEmpty()
-
-
-
Constructor Detail
-
MultiPartsHttpParser
public MultiPartsHttpParser(java.io.InputStream in, java.lang.String contentType, javax.servlet.MultipartConfigElement config, java.io.File contextTmpDir, Request request) throws java.io.IOException
- Throws:
java.io.IOException
-
MultiPartsHttpParser
public MultiPartsHttpParser(java.io.InputStream in, java.lang.String contentType, javax.servlet.MultipartConfigElement config, java.io.File contextTmpDir, Request request, int maxParts) throws java.io.IOException
- Throws:
java.io.IOException
-
-
Method Detail
-
getParts
public java.util.Collection<javax.servlet.http.Part> getParts() throws java.io.IOException
- Specified by:
getParts
in interfaceMultiParts
- Throws:
java.io.IOException
-
getPart
public javax.servlet.http.Part getPart(java.lang.String name) throws java.io.IOException
- Specified by:
getPart
in interfaceMultiParts
- Throws:
java.io.IOException
-
close
public void close()
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interfaceMultiParts
-
getContext
public ContextHandler.Context getContext()
- Specified by:
getContext
in interfaceMultiParts
-
-