|
||||||||||
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 String |
ATTACHMENT_DIRECTORY
|
static String |
ATTACHMENT_MEMORY_THRESHOLD
|
Constructor Summary | |
---|---|
StreamedAttachments(InputStream is,
String contentType)
|
|
StreamedAttachments(MessageContext context,
InputStream is,
String contentType)
|
Method Summary | |
---|---|
void |
addPart(Attachment part)
|
protected static void |
copy(InputStream input,
OutputStream output)
|
void |
dispose()
|
String |
getContentType()
Get the conetnt type of the whole message. |
Attachment |
getPart(String id)
|
Iterator |
getParts()
|
String |
getSoapContentType()
Get the content type of the soap message. |
Attachment |
getSoapMessage()
|
File |
getTempDirectory()
The directory where attachments will be written to if they exceed the Threshold. |
int |
getThreshold()
Get the threshold in bytes. |
void |
setSoapContentType(String soapMimeType)
Set the content type of the soap message. |
void |
setSoapMessage(Attachment soapMessage)
|
void |
setTempDirectory(File tempDirectory)
|
void |
setThreshold(int threshold)
|
int |
size()
|
void |
write(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 String ATTACHMENT_DIRECTORY
public static final String ATTACHMENT_MEMORY_THRESHOLD
Constructor Detail |
---|
public StreamedAttachments(InputStream is, String contentType) throws IOException
IOException
public StreamedAttachments(MessageContext context, InputStream is, String contentType) throws IOException
IOException
Method Detail |
---|
public void addPart(Attachment part)
addPart
in interface Attachments
public String getContentType()
Attachments
getContentType
in interface Attachments
public Attachment getPart(String id)
getPart
in interface Attachments
public Iterator getParts()
getParts
in interface Attachments
public String getSoapContentType()
Attachments
getSoapContentType
in interface Attachments
public Attachment getSoapMessage()
getSoapMessage
in interface Attachments
public void setSoapContentType(String soapMimeType)
Attachments
setSoapContentType
in interface Attachments
public void setSoapMessage(Attachment soapMessage)
setSoapMessage
in interface Attachments
soapMessage
- The SOAP Message to set.public int size()
size
in interface Attachments
public void write(OutputStream out) throws IOException
write
in interface Attachments
IOException
public void dispose()
public File getTempDirectory()
public void setTempDirectory(File tempDirectory)
public int getThreshold()
public void setThreshold(int threshold)
protected static void copy(InputStream input, OutputStream output) throws IOException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |