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
,Content.Source
- Enclosing class:
- MultiPartByteRanges
The multipart/byteranges specific content source.
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
addPart
(MultiPart.Part part) Adds, if possible, the givenMultiPart.Part
to thisContentSource
.Methods inherited from class org.eclipse.jetty.http.MultiPart.AbstractContentSource
close, customizePartHeaders, demand, fail, getBoundary, getLength, getPartHeadersMaxLength, read, setPartHeadersMaxLength
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.eclipse.jetty.io.Content.Source
fail, rewind
-
Constructor Details
-
ContentSource
-
-
Method Details
-
addPart
Description copied from class:MultiPart.AbstractContentSource
Adds, if possible, the given
MultiPart.Part
to thisContentSource
.Part
s may be added until thisContentSource
isclosed
.This method returns
true
if the part was added,false
if the part cannot be added because thisContentSource
is already closed, or because it has beenfailed
.- Overrides:
addPart
in classMultiPart.AbstractContentSource
- Parameters:
part
- theMultiPart.Part
to add- Returns:
- whether the part has been added
- See Also:
-