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 java.lang.Object
- implements Payload.Outbound
|
Method Summary |
void |
addPart(int index,
java.lang.String contentType,
java.lang.String name,
java.util.Properties props,
java.io.InputStream content)
|
void |
addPart(java.lang.String contentType,
java.lang.String name,
java.util.Properties props,
java.io.InputStream content)
|
void |
addPart(java.lang.String contentType,
java.lang.String name,
java.util.Properties props,
java.lang.String content)
|
void |
attachFile(java.lang.String contentType,
java.net.URI fileURI,
java.lang.String dataRequestName,
java.io.File file)
|
void |
attachFile(java.lang.String contentType,
java.net.URI fileURI,
java.lang.String dataRequestName,
java.io.File file,
boolean isRecursive)
|
void |
attachFile(java.lang.String contentType,
java.net.URI fileURI,
java.lang.String dataRequestName,
java.util.Properties props,
java.io.File file)
|
void |
attachFile(java.lang.String contentType,
java.net.URI fileURI,
java.lang.String dataRequestName,
java.util.Properties props,
java.io.File file,
boolean isRecursive)
|
abstract java.lang.String |
getComplexContentType()
Returns the Content-Type which reflects that multiple Parts will be
in the Payload. |
java.lang.String |
getContentType()
|
java.lang.String |
getHeaderName()
|
static PayloadImpl.Outbound |
newInstance()
|
void |
requestFileRemoval(java.net.URI fileURI,
java.lang.String dataRequestName,
java.util.Properties props)
|
void |
requestFileRemoval(java.net.URI fileURI,
java.lang.String dataRequestName,
java.util.Properties props,
boolean isRecursive)
|
void |
requestFileReplacement(java.lang.String contentType,
java.net.URI fileURI,
java.lang.String dataRequestName,
java.util.Properties props,
java.io.File file,
boolean isRecursive)
|
void |
writeTo(java.io.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(java.lang.String contentType,
java.lang.String name,
java.util.Properties props,
java.lang.String content)
throws java.io.IOException
- Specified by:
addPart in interface Payload.Outbound
- Throws:
java.io.IOException
addPart
public void addPart(java.lang.String contentType,
java.lang.String name,
java.util.Properties props,
java.io.InputStream content)
throws java.io.IOException
- Specified by:
addPart in interface Payload.Outbound
- Throws:
java.io.IOException
addPart
public void addPart(int index,
java.lang.String contentType,
java.lang.String name,
java.util.Properties props,
java.io.InputStream content)
throws java.io.IOException
- Specified by:
addPart in interface Payload.Outbound
- Throws:
java.io.IOException
attachFile
public void attachFile(java.lang.String contentType,
java.net.URI fileURI,
java.lang.String dataRequestName,
java.io.File file)
throws java.io.IOException
- Specified by:
attachFile in interface Payload.Outbound
- Throws:
java.io.IOException
attachFile
public void attachFile(java.lang.String contentType,
java.net.URI fileURI,
java.lang.String dataRequestName,
java.io.File file,
boolean isRecursive)
throws java.io.IOException
- Specified by:
attachFile in interface Payload.Outbound
- Throws:
java.io.IOException
attachFile
public void attachFile(java.lang.String contentType,
java.net.URI fileURI,
java.lang.String dataRequestName,
java.util.Properties props,
java.io.File file)
throws java.io.IOException
- Specified by:
attachFile in interface Payload.Outbound
- Throws:
java.io.IOException
attachFile
public void attachFile(java.lang.String contentType,
java.net.URI fileURI,
java.lang.String dataRequestName,
java.util.Properties props,
java.io.File file,
boolean isRecursive)
throws java.io.IOException
- Specified by:
attachFile in interface Payload.Outbound
- Throws:
java.io.IOException
requestFileReplacement
public void requestFileReplacement(java.lang.String contentType,
java.net.URI fileURI,
java.lang.String dataRequestName,
java.util.Properties props,
java.io.File file,
boolean isRecursive)
throws java.io.IOException
- Specified by:
requestFileReplacement in interface Payload.Outbound
- Throws:
java.io.IOException
requestFileRemoval
public void requestFileRemoval(java.net.URI fileURI,
java.lang.String dataRequestName,
java.util.Properties props)
throws java.io.IOException
- Specified by:
requestFileRemoval in interface Payload.Outbound
- Throws:
java.io.IOException
requestFileRemoval
public void requestFileRemoval(java.net.URI fileURI,
java.lang.String dataRequestName,
java.util.Properties props,
boolean isRecursive)
throws java.io.IOException
- Specified by:
requestFileRemoval in interface Payload.Outbound
- Throws:
java.io.IOException
getHeaderName
public java.lang.String getHeaderName()
- Specified by:
getHeaderName in interface Payload.Outbound
getContentType
public java.lang.String getContentType()
- Specified by:
getContentType in interface Payload.Outbound
writeTo
public void writeTo(java.io.OutputStream os)
throws java.io.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:
java.io.IOException
getComplexContentType
public abstract java.lang.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.