public abstract static class PayloadImpl.Outbound extends Object implements org.glassfish.api.admin.Payload.Outbound
| Constructor and Description |
|---|
Outbound() |
| Modifier and Type | Method and Description |
|---|---|
void |
addPart(int index,
String contentType,
String name,
Properties props,
InputStream content) |
void |
addPart(String contentType,
String name,
Properties props,
InputStream content) |
void |
addPart(String contentType,
String name,
Properties props,
String content) |
void |
attachFile(String contentType,
URI fileURI,
String dataRequestName,
File file) |
void |
attachFile(String contentType,
URI fileURI,
String dataRequestName,
File file,
boolean isRecursive) |
void |
attachFile(String contentType,
URI fileURI,
String dataRequestName,
Properties props,
File file) |
void |
attachFile(String contentType,
URI fileURI,
String dataRequestName,
Properties props,
File file,
boolean isRecursive) |
abstract String |
getComplexContentType()
Returns the Content-Type which reflects that multiple Parts will be
in the Payload.
|
String |
getContentType() |
String |
getHeaderName() |
ArrayList<org.glassfish.api.admin.Payload.Part> |
getParts() |
boolean |
isDirty() |
static PayloadImpl.Outbound |
newInstance() |
Iterator<org.glassfish.api.admin.Payload.Part> |
parts() |
void |
requestFileRemoval(URI fileURI,
String dataRequestName,
Properties props) |
void |
requestFileRemoval(URI fileURI,
String dataRequestName,
Properties props,
boolean isRecursive) |
void |
requestFileReplacement(String contentType,
URI fileURI,
String dataRequestName,
Properties props,
File file,
boolean isRecursive) |
void |
resetDirty() |
int |
size() |
protected abstract void |
writePartsTo(OutputStream os)
Writes the Parts in this Outbound Payload to the specified output
stream; concrete implementations will implement this abstract method.
|
void |
writeTo(OutputStream os)
Writes the Payload to the specified output stream.
|
public int size()
size in interface org.glassfish.api.admin.Payload.Outboundpublic void addPart(String contentType, String name, Properties props, String content) throws IOException
addPart in interface org.glassfish.api.admin.Payload.OutboundIOExceptionpublic void addPart(String contentType, String name, Properties props, InputStream content) throws IOException
addPart in interface org.glassfish.api.admin.Payload.OutboundIOExceptionpublic void addPart(int index,
String contentType,
String name,
Properties props,
InputStream content)
throws IOException
addPart in interface org.glassfish.api.admin.Payload.OutboundIOExceptionpublic void attachFile(String contentType, URI fileURI, String dataRequestName, File file) throws IOException
attachFile in interface org.glassfish.api.admin.Payload.OutboundIOExceptionpublic void attachFile(String contentType, URI fileURI, String dataRequestName, File file, boolean isRecursive) throws IOException
attachFile in interface org.glassfish.api.admin.Payload.OutboundIOExceptionpublic void attachFile(String contentType, URI fileURI, String dataRequestName, Properties props, File file) throws IOException
attachFile in interface org.glassfish.api.admin.Payload.OutboundIOExceptionpublic void attachFile(String contentType, URI fileURI, String dataRequestName, Properties props, File file, boolean isRecursive) throws IOException
attachFile in interface org.glassfish.api.admin.Payload.OutboundIOExceptionpublic void requestFileReplacement(String contentType, URI fileURI, String dataRequestName, Properties props, File file, boolean isRecursive) throws IOException
requestFileReplacement in interface org.glassfish.api.admin.Payload.OutboundIOExceptionpublic void requestFileRemoval(URI fileURI, String dataRequestName, Properties props) throws IOException
requestFileRemoval in interface org.glassfish.api.admin.Payload.OutboundIOExceptionpublic void requestFileRemoval(URI fileURI, String dataRequestName, Properties props, boolean isRecursive) throws IOException
requestFileRemoval in interface org.glassfish.api.admin.Payload.OutboundIOExceptionpublic String getHeaderName()
getHeaderName in interface org.glassfish.api.admin.Payload.Outboundpublic String getContentType()
getContentType in interface org.glassfish.api.admin.Payload.Outboundpublic ArrayList<org.glassfish.api.admin.Payload.Part> getParts()
protected abstract void writePartsTo(OutputStream os) throws IOException
os - the OutputStream to which the Parts should be writtenIOExceptionpublic void writeTo(OutputStream os) throws IOException
writeTo in interface org.glassfish.api.admin.Payload.Outboundos - the OutputStream to which the Payload should be writtenIOExceptionpublic abstract String getComplexContentType()
This content type might vary among different implementations of Payload.
public static PayloadImpl.Outbound newInstance()
public Iterator<org.glassfish.api.admin.Payload.Part> parts()
parts in interface org.glassfish.api.admin.Payload.Outboundpublic boolean isDirty()
isDirty in interface org.glassfish.api.admin.Payload.Outboundpublic void resetDirty()
resetDirty in interface org.glassfish.api.admin.Payload.OutboundCopyright © 2017–2020 Eclipse Foundation. All rights reserved.