com.sun.xml.ws.encoding.xml
Interface XMLMessage.MessageDataSource

All Known Implementing Classes:
XMLMessage.UnknownContent, XMLMessage.XMLMultiPart
Enclosing class:
XMLMessage

public static interface XMLMessage.MessageDataSource

Access a Message as a DataSource.

A Message implementation will implement this if the messages is to be access as data source.

TODO: consider putting as part of the API.


Method Summary
 javax.activation.DataSource getDataSource()
          Get the data source.
 boolean hasUnconsumedDataSource()
          Check if the data source has been consumed.
 

Method Detail

hasUnconsumedDataSource

boolean hasUnconsumedDataSource()
Check if the data source has been consumed.

Returns:
true of the data source has been consumed, otherwise false.

getDataSource

javax.activation.DataSource getDataSource()
Get the data source.

Returns:
the data source.