Module org.eclipse.jetty.http
Package org.eclipse.jetty.http
Class MultiPartByteRanges.ContentSource
java.lang.Object
org.eclipse.jetty.http.MultiPart.AbstractContentSource
org.eclipse.jetty.http.MultiPartByteRanges.ContentSource
- All Implemented Interfaces:
Closeable,AutoCloseable,org.eclipse.jetty.io.Content.Source
- Enclosing class:
MultiPartByteRanges
The multipart/byteranges specific content source.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddPart(MultiPart.Part part) Adds, if possible, the givenMultiPart.Partto thisContentSource.Methods inherited from class org.eclipse.jetty.http.MultiPart.AbstractContentSource
close, customizePartHeaders, demand, fail, getBoundary, getLength, getPartHeadersMaxLength, read, setPartHeadersMaxLengthMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.eclipse.jetty.io.Content.Source
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:
-