|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.codehaus.xfire.attachments.StreamedAttachments
public class StreamedAttachments
| Field Summary | |
|---|---|
static java.lang.String |
ATTACHMENT_DIRECTORY
|
static java.lang.String |
ATTACHMENT_MEMORY_THRESHOLD
|
| Constructor Summary | |
|---|---|
StreamedAttachments(java.io.InputStream is,
java.lang.String contentType)
|
|
StreamedAttachments(MessageContext context,
java.io.InputStream is,
java.lang.String contentType)
|
|
| Method Summary | |
|---|---|
void |
addPart(Attachment part)
|
protected static void |
copy(java.io.InputStream input,
java.io.OutputStream output)
|
void |
dispose()
|
java.lang.String |
getContentType()
Get the conetnt type of the whole message. |
Attachment |
getPart(java.lang.String id)
|
java.util.Iterator |
getParts()
|
java.lang.String |
getSoapContentType()
Get the content type of the soap message. |
Attachment |
getSoapMessage()
|
java.io.File |
getTempDirectory()
The directory where attachments will be written to if they exceed the Threshold. |
int |
getThreshold()
Get the threshold in bytes. |
void |
setSoapContentType(java.lang.String soapMimeType)
Set the content type of the soap message. |
void |
setSoapMessage(Attachment soapMessage)
|
void |
setTempDirectory(java.io.File tempDirectory)
|
void |
setThreshold(int threshold)
|
int |
size()
|
void |
write(java.io.OutputStream out)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String ATTACHMENT_DIRECTORY
public static final java.lang.String ATTACHMENT_MEMORY_THRESHOLD
| Constructor Detail |
|---|
public StreamedAttachments(java.io.InputStream is,
java.lang.String contentType)
throws java.io.IOException
java.io.IOException
public StreamedAttachments(MessageContext context,
java.io.InputStream is,
java.lang.String contentType)
throws java.io.IOException
java.io.IOException| Method Detail |
|---|
public void addPart(Attachment part)
addPart in interface Attachmentspublic java.lang.String getContentType()
Attachments
getContentType in interface Attachmentspublic Attachment getPart(java.lang.String id)
getPart in interface Attachmentspublic java.util.Iterator getParts()
getParts in interface Attachmentspublic java.lang.String getSoapContentType()
Attachments
getSoapContentType in interface Attachmentspublic Attachment getSoapMessage()
getSoapMessage in interface Attachmentspublic void setSoapContentType(java.lang.String soapMimeType)
Attachments
setSoapContentType in interface Attachmentspublic void setSoapMessage(Attachment soapMessage)
setSoapMessage in interface AttachmentssoapMessage - The SOAP Message to set.public int size()
size in interface Attachments
public void write(java.io.OutputStream out)
throws java.io.IOException
write in interface Attachmentsjava.io.IOExceptionpublic void dispose()
public java.io.File getTempDirectory()
public void setTempDirectory(java.io.File tempDirectory)
public int getThreshold()
public void setThreshold(int threshold)
protected static void copy(java.io.InputStream input,
java.io.OutputStream output)
throws java.io.IOException
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||