Class MultiPartFormData.Parts
java.lang.Object
org.eclipse.jetty.http.MultiPartFormData.Parts
- All Implemented Interfaces:
Closeable, AutoCloseable, Iterable<MultiPart.Part>
- Enclosing class:
MultiPartFormData
public static class MultiPartFormData.Parts
extends Object
implements Iterable<MultiPart.Part>, Closeable
An ordered list of MultiPart.Parts that can
be accessed by index or by name, or iterated over.
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()get(int index) Returns theMultiPart.Partat the given index, a number between0included and the value returned bysize()excluded.Returns all theMultiPart.Parts with the given name.Returns the firstMultiPart.Partwith the given name, ornullif noMultiPart.Partwith that name exists.iterator()intsize()Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Iterable
forEach, spliterator
-
Method Details
-
get
Returns the
MultiPart.Partat the given index, a number between0included and the value returned bysize()excluded.- Parameters:
index- the index of theMultiPart.Partto return- Returns:
- the
MultiPart.Partat the given index
-
getFirst
Returns the first
MultiPart.Partwith the given name, ornullif noMultiPart.Partwith that name exists.- Parameters:
name- theMultiPart.Partname- Returns:
- the first
MultiPart.Partwith the given name, ornull
-
getAll
Returns all the
MultiPart.Parts with the given name.- Parameters:
name- theMultiPart.Parts name- Returns:
- all the
MultiPart.Parts with the given name
-
size
public int size()- Returns:
- the number of parts
- See Also:
-
iterator
- Specified by:
iteratorin interfaceIterable<MultiPart.Part>
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-