Package org.glassfish.api.admin
Interface Payload.Part
- Enclosing interface:
- Payload
public static interface Payload.Part
Public API for the payload Part.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
copy
(OutputStream os) Copies the contents of the Part to the specified OutputStream.Returns the content type of the part.File where content was extracted from the payload.Returns an InputStream suitable for reading the content of the Part.getName()
Returns the name assigned to the part when it was created.Returns the Properties associated with the Part.boolean
Indicates if the Part represents a recursive action or not.void
setExtracted
(File extractedFile) Extractor of content can note where the content was extracted.
-
Method Details
-
getName
String getName()Returns the name assigned to the part when it was created.- Returns:
- name
-
getContentType
String getContentType()Returns the content type of the part.- Returns:
- content type
-
getProperties
Properties getProperties()Returns the Properties associated with the Part.- Returns:
- Properties for the Part
-
getInputStream
InputStream getInputStream()Returns an InputStream suitable for reading the content of the Part.- Returns:
-
copy
Copies the contents of the Part to the specified OutputStream.- Parameters:
os
- target OutputStream to receive the content of the Part- Throws:
IOException
-
isRecursive
boolean isRecursive()Indicates if the Part represents a recursive action or not.- Returns:
-
setExtracted
Extractor of content can note where the content was extracted. It can help next user of the same Part to read content.- Parameters:
extractedFile
-
-
getExtracted
File getExtracted()File where content was extracted from the payload.
-