org.glassfish.admin.payload
Class PayloadImpl.Outbound
java.lang.Object
org.glassfish.admin.payload.PayloadImpl.Outbound
- All Implemented Interfaces:
- Payload.Outbound
- Enclosing class:
- PayloadImpl
public abstract static class PayloadImpl.Outbound
- extends Object
- implements Payload.Outbound
|
Method Summary |
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()
|
static PayloadImpl.Outbound |
newInstance()
|
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 |
writeTo(OutputStream os)
Writes the Payload to the specified output stream. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PayloadImpl.Outbound
public PayloadImpl.Outbound()
addPart
public void addPart(String contentType,
String name,
Properties props,
String content)
throws IOException
- Specified by:
addPart in interface Payload.Outbound
- Throws:
IOException
addPart
public void addPart(String contentType,
String name,
Properties props,
InputStream content)
throws IOException
- Specified by:
addPart in interface Payload.Outbound
- Throws:
IOException
addPart
public void addPart(int index,
String contentType,
String name,
Properties props,
InputStream content)
throws IOException
- Specified by:
addPart in interface Payload.Outbound
- Throws:
IOException
attachFile
public void attachFile(String contentType,
URI fileURI,
String dataRequestName,
File file)
throws IOException
- Specified by:
attachFile in interface Payload.Outbound
- Throws:
IOException
attachFile
public void attachFile(String contentType,
URI fileURI,
String dataRequestName,
File file,
boolean isRecursive)
throws IOException
- Specified by:
attachFile in interface Payload.Outbound
- Throws:
IOException
attachFile
public void attachFile(String contentType,
URI fileURI,
String dataRequestName,
Properties props,
File file)
throws IOException
- Specified by:
attachFile in interface Payload.Outbound
- Throws:
IOException
attachFile
public void attachFile(String contentType,
URI fileURI,
String dataRequestName,
Properties props,
File file,
boolean isRecursive)
throws IOException
- Specified by:
attachFile in interface Payload.Outbound
- Throws:
IOException
requestFileReplacement
public void requestFileReplacement(String contentType,
URI fileURI,
String dataRequestName,
Properties props,
File file,
boolean isRecursive)
throws IOException
- Specified by:
requestFileReplacement in interface Payload.Outbound
- Throws:
IOException
requestFileRemoval
public void requestFileRemoval(URI fileURI,
String dataRequestName,
Properties props)
throws IOException
- Specified by:
requestFileRemoval in interface Payload.Outbound
- Throws:
IOException
requestFileRemoval
public void requestFileRemoval(URI fileURI,
String dataRequestName,
Properties props,
boolean isRecursive)
throws IOException
- Specified by:
requestFileRemoval in interface Payload.Outbound
- Throws:
IOException
getHeaderName
public String getHeaderName()
- Specified by:
getHeaderName in interface Payload.Outbound
getContentType
public String getContentType()
- Specified by:
getContentType in interface Payload.Outbound
writeTo
public void writeTo(OutputStream os)
throws IOException
- Writes the Payload to the specified output stream.
- Specified by:
writeTo in interface 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()
Copyright © 2012 GlassFish Community. All Rights Reserved.