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 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
 InputStream createInputStream()
           
 void dispose()
           
 String getContentType()
           
 InputStream getInputStream()
           
 String getName()
           
 OutputStream getOutputStream()
           
 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 String getContentType()
Specified by:
getContentType in interface javax.activation.DataSource

getSoapContentType

public String getSoapContentType()

getInputStream

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

createInputStream

public InputStream createInputStream()
                              throws XFireException
Throws:
XFireException

getName

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

getOutputStream

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

dispose

public void dispose()


Copyright © 2004-2013. All Rights Reserved.