org.codehaus.xfire.util
Class OutMessageDataSource

java.lang.Object
  extended by org.codehaus.xfire.util.OutMessageDataSource
All Implemented Interfaces:
javax.activation.DataSource

public class OutMessageDataSource
extends java.lang.Object
implements javax.activation.DataSource

This will create a DataSource from a message for use in Attachments.

Author:
Dan Diephouse

Constructor Summary
OutMessageDataSource(MessageContext context2, OutMessage message)
           
 
Method Summary
 java.io.InputStream createInputStream()
           
 void dispose()
           
 java.lang.String getContentType()
           
 java.io.InputStream getInputStream()
           
 java.lang.String getName()
           
 java.io.OutputStream getOutputStream()
           
 java.lang.String getSoapContentType()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OutMessageDataSource

public OutMessageDataSource(MessageContext context2,
                            OutMessage message)
                     throws XFireException
Throws:
XFireException
Method Detail

getContentType

public java.lang.String getContentType()
Specified by:
getContentType in interface javax.activation.DataSource

getSoapContentType

public java.lang.String getSoapContentType()

getInputStream

public java.io.InputStream getInputStream()
                                   throws java.io.IOException
Specified by:
getInputStream in interface javax.activation.DataSource
Throws:
java.io.IOException

createInputStream

public java.io.InputStream createInputStream()
                                      throws XFireException
Throws:
XFireException

getName

public java.lang.String getName()
Specified by:
getName in interface javax.activation.DataSource

getOutputStream

public java.io.OutputStream getOutputStream()
                                     throws java.io.IOException
Specified by:
getOutputStream in interface javax.activation.DataSource
Throws:
java.io.IOException

dispose

public void dispose()


Copyright © 2004-2009. All Rights Reserved.