java.lang.Object
org.eclipse.jetty.http.MultiPart.Part
org.eclipse.jetty.http.MultiPart.ByteBufferPart
- Enclosing class:
- MultiPart
A MultiPart.Part that holds its content in memory,
in one or more ByteBuffers.
-
Constructor Summary
ConstructorsConstructorDescriptionByteBufferPart(String name, String fileName, HttpFields fields, ByteBuffer... buffers) ByteBufferPart(String name, String fileName, HttpFields fields, List<ByteBuffer> content) -
Method Summary
Modifier and TypeMethodDescriptionorg.eclipse.jetty.io.Content.SourceReturns the content of this part.toString()Methods inherited from class org.eclipse.jetty.http.MultiPart.Part
getContentAsString, getFileName, getHeaders, getName, writeTo
-
Constructor Details
-
ByteBufferPart
-
ByteBufferPart
-
-
Method Details
-
getContent
public org.eclipse.jetty.io.Content.Source getContent()Description copied from class:MultiPart.PartReturns 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:
getContentin classMultiPart.Part- Returns:
- the content of this part
-
toString
-