Class MultiPartByteRanges.ContentSource
java.lang.Object
org.eclipse.jetty.http.MultiPart.AbstractContentSource
org.eclipse.jetty.http.MultiPartByteRanges.ContentSource
- All Implemented Interfaces:
Closeable, AutoCloseable, Content.Source
- Enclosing class:
MultiPartByteRanges
The multipart/byteranges specific content source.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface Content.Source
Content.Source.Factory -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddPart(MultiPart.Part part) Adds, if possible, the givenMultiPart.Partto thisContentSource.Methods inherited from class MultiPart.AbstractContentSource
close, customizePartHeaders, demand, fail, getBoundary, getLength, getPartHeadersMaxLength, read, setPartHeadersMaxLengthMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Content.Source
fail, rewind
-
Constructor Details
-
ContentSource
-
-
Method Details
-
addPart
Description copied from class:MultiPart.AbstractContentSourceAdds, if possible, the given
MultiPart.Partto thisContentSource.Parts may be added until thisContentSourceisclosed.This method returns
trueif the part was added,falseif the part cannot be added because thisContentSourceis already closed, or because it has beenfailed.- Overrides:
addPartin classMultiPart.AbstractContentSource- Parameters:
part- theMultiPart.Partto add- Returns:
- whether the part has been added
- See Also:
-