Package org.glassfish.admin.payload
Class PayloadImpl.Outbound
java.lang.Object
org.glassfish.admin.payload.PayloadImpl.Outbound
- All Implemented Interfaces:
org.glassfish.api.admin.Payload.Outbound
- Enclosing class:
- PayloadImpl
public abstract static class PayloadImpl.Outbound
extends Object
implements org.glassfish.api.admin.Payload.Outbound
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddPart(int index, String contentType, String name, Properties props, InputStream content) voidaddPart(String contentType, String name, Properties props, InputStream content) voidaddPart(String contentType, String name, Properties props, String content) voidattachFile(String contentType, URI fileURI, String dataRequestName, File file) voidattachFile(String contentType, URI fileURI, String dataRequestName, File file, boolean isRecursive) voidattachFile(String contentType, URI fileURI, String dataRequestName, Properties props, File file) voidattachFile(String contentType, URI fileURI, String dataRequestName, Properties props, File file, boolean isRecursive) abstract StringReturns the Content-Type which reflects that multiple Parts will be in the Payload.ArrayList<org.glassfish.api.admin.Payload.Part>getParts()booleanisDirty()static PayloadImpl.OutboundIterator<org.glassfish.api.admin.Payload.Part>parts()voidrequestFileRemoval(URI fileURI, String dataRequestName, Properties props) voidrequestFileRemoval(URI fileURI, String dataRequestName, Properties props, boolean isRecursive) voidrequestFileReplacement(String contentType, URI fileURI, String dataRequestName, Properties props, File file, boolean isRecursive) voidintsize()protected abstract voidWrites the Parts in this Outbound Payload to the specified output stream and closes it.voidwriteTo(OutputStream os) Writes the Payload to the specified output stream and closes it.
-
Constructor Details
-
Outbound
public Outbound()
-
-
Method Details
-
size
public int size()- Specified by:
sizein interfaceorg.glassfish.api.admin.Payload.Outbound
-
addPart
public void addPart(String contentType, String name, Properties props, String content) throws IOException - Specified by:
addPartin interfaceorg.glassfish.api.admin.Payload.Outbound- Throws:
IOException
-
addPart
public void addPart(String contentType, String name, Properties props, InputStream content) throws IOException - Specified by:
addPartin interfaceorg.glassfish.api.admin.Payload.Outbound- Throws:
IOException
-
addPart
public void addPart(int index, String contentType, String name, Properties props, InputStream content) throws IOException - Specified by:
addPartin interfaceorg.glassfish.api.admin.Payload.Outbound- Throws:
IOException
-
attachFile
public void attachFile(String contentType, URI fileURI, String dataRequestName, File file) throws IOException - Specified by:
attachFilein interfaceorg.glassfish.api.admin.Payload.Outbound- Throws:
IOException
-
attachFile
public void attachFile(String contentType, URI fileURI, String dataRequestName, File file, boolean isRecursive) throws IOException - Specified by:
attachFilein interfaceorg.glassfish.api.admin.Payload.Outbound- Throws:
IOException
-
attachFile
public void attachFile(String contentType, URI fileURI, String dataRequestName, Properties props, File file) throws IOException - Specified by:
attachFilein interfaceorg.glassfish.api.admin.Payload.Outbound- Throws:
IOException
-
attachFile
public void attachFile(String contentType, URI fileURI, String dataRequestName, Properties props, File file, boolean isRecursive) throws IOException - Specified by:
attachFilein interfaceorg.glassfish.api.admin.Payload.Outbound- Throws:
IOException
-
requestFileReplacement
public void requestFileReplacement(String contentType, URI fileURI, String dataRequestName, Properties props, File file, boolean isRecursive) throws IOException - Specified by:
requestFileReplacementin interfaceorg.glassfish.api.admin.Payload.Outbound- Throws:
IOException
-
requestFileRemoval
public void requestFileRemoval(URI fileURI, String dataRequestName, Properties props) throws IOException - Specified by:
requestFileRemovalin interfaceorg.glassfish.api.admin.Payload.Outbound- Throws:
IOException
-
requestFileRemoval
public void requestFileRemoval(URI fileURI, String dataRequestName, Properties props, boolean isRecursive) throws IOException - Specified by:
requestFileRemovalin interfaceorg.glassfish.api.admin.Payload.Outbound- Throws:
IOException
-
getHeaderName
- Specified by:
getHeaderNamein interfaceorg.glassfish.api.admin.Payload.Outbound
-
getContentType
- Specified by:
getContentTypein interfaceorg.glassfish.api.admin.Payload.Outbound
-
getParts
-
writePartsTo
Writes the Parts in this Outbound Payload to the specified output stream and closes it.Concrete implementations will implement this abstract method.
- Parameters:
os- the OutputStream to which the Parts should be written- Throws:
IOException
-
writeTo
Writes the Payload to the specified output stream and closes it.- Specified by:
writeToin interfaceorg.glassfish.api.admin.Payload.Outbound- Parameters:
os- the OutputStream to which the Payload should be written- Throws:
IOException
-
getComplexContentType
Returns the Content-Type which reflects that multiple Parts will be in the Payload.This content type might vary among different implementations of Payload.
- Returns:
- the content type for complex payloads
-
newInstance
-
parts
- Specified by:
partsin interfaceorg.glassfish.api.admin.Payload.Outbound
-
isDirty
public boolean isDirty()- Specified by:
isDirtyin interfaceorg.glassfish.api.admin.Payload.Outbound
-
resetDirty
public void resetDirty()- Specified by:
resetDirtyin interfaceorg.glassfish.api.admin.Payload.Outbound
-