Package org.eclipse.jetty.http
Class MultiPart.PathPart
java.lang.Object
org.eclipse.jetty.http.MultiPart.Part
org.eclipse.jetty.http.MultiPart.PathPart
- All Implemented Interfaces:
Closeable
,AutoCloseable
- Enclosing class:
- MultiPart
A MultiPart.Part
whose content is in a file.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetPath()
Returns the content of this part as a newContent.Source
toString()
Methods inherited from class org.eclipse.jetty.http.MultiPart.Part
close, delete, fail, getContentAsString, getContentSource, getFileName, getHeaders, getLength, getName, writeTo
-
Constructor Details
-
PathPart
-
-
Method Details
-
getPath
-
newContentSource
Description copied from class:MultiPart.Part
Returns the content of this part as a new
Content.Source
If the content is reproducible, invoking this method multiple times will return a different independent instance for every invocation.
If the content is not reproducible, subsequent calls to this method will return null.
The content type and content encoding are specified in this part's
headers
.The content encoding may be specified by the part named
_charset_
, as specified in RFC 7578, section 4.6.- Specified by:
newContentSource
in classMultiPart.Part
- Returns:
- the content of this part as a new
Content.Source
or null if the content cannot be consumed multiple times. - See Also:
-
toString
-