java.lang.Object
org.eclipse.jetty.http.MultiPart.Part
org.eclipse.jetty.http.MultiPart.PathPart
- Enclosing class:
MultiPart
A MultiPart.Part
whose content is in a file.
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.eclipse.jetty.http.MultiPart.Part
getContentAsString, getFileName, getHeaders, getName
-
Constructor Details
-
PathPart
-
-
Method Details
-
getPath
-
getContent
public org.eclipse.jetty.io.Content.Source getContent()Description copied from class:MultiPart.Part
Returns the content of this part.
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:
getContent
in classMultiPart.Part
- Returns:
- the content of this part
-
writeTo
Description copied from class:MultiPart.Part
Writes the content of this part to the given path.
- Overrides:
writeTo
in classMultiPart.Part
- Parameters:
path
- the Path to write this part's content to- Throws:
IOException
- if the write fails
-
delete
public void delete() -
toString
-