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 Constructor Description Outbound()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidaddPart(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 StringgetComplexContentType()Returns the Content-Type which reflects that multiple Parts will be in the Payload.StringgetContentType()StringgetHeaderName()ArrayList<org.glassfish.api.admin.Payload.Part>getParts()booleanisDirty()static PayloadImpl.OutboundnewInstance()Iterator<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)voidresetDirty()intsize()protected abstract voidwritePartsTo(OutputStream os)Writes the Parts in this Outbound Payload to the specified output stream; concrete implementations will implement this abstract method.voidwriteTo(OutputStream os)Writes the Payload to the specified output stream.
-
-
-
Method Detail
-
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
public String getHeaderName()
- Specified by:
getHeaderNamein interfaceorg.glassfish.api.admin.Payload.Outbound
-
getContentType
public String getContentType()
- Specified by:
getContentTypein interfaceorg.glassfish.api.admin.Payload.Outbound
-
getParts
public ArrayList<org.glassfish.api.admin.Payload.Part> getParts()
-
writePartsTo
protected abstract void writePartsTo(OutputStream os) throws IOException
Writes the Parts in this Outbound Payload to the specified output stream; concrete implementations will implement this abstract method.- Parameters:
os- the OutputStream to which the Parts should be written- Throws:
IOException
-
writeTo
public void writeTo(OutputStream os) throws IOException
Writes the Payload to the specified output stream.- Specified by:
writeToin interfaceorg.glassfish.api.admin.Payload.Outbound- Parameters:
os- the OutputStream to which the Payload should be written- Throws:
IOException
-
getComplexContentType
public abstract String 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
public static PayloadImpl.Outbound newInstance()
-
parts
public Iterator<org.glassfish.api.admin.Payload.Part> 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
-
-