com.ibm.portal.resolver.data
Interface XmlDataSink

All Superinterfaces:
DataSink, Disposable

public interface XmlDataSink
extends DataSink

Identifies a data sink that is able to handle XML feeds. The resolver infrastructure takes care of interpreting the incoming request body as an XML data stream and provides it in form of a Source object to the data sink.

The implementation of XmlDataSink can optionally implement the EntityResolver interface. If this is the case then the entity resolver will be used as the primary entity resolver during the parsing process.

Since:
6.1.0
Note:
This interface is designed to be implemented by clients.

Method Summary
 DataSource parse(javax.xml.transform.Source src, java.lang.String mimeType)
          Called by the framework with the body content of the request that has already been parsed as a Source.
 
Methods inherited from interface com.ibm.portal.Disposable
dispose
 

Method Detail

parse

DataSource parse(javax.xml.transform.Source src,
                 java.lang.String mimeType)
                 throws javax.xml.transform.TransformerException,
                        org.xml.sax.SAXException,
                        java.io.IOException
Called by the framework with the body content of the request that has already been parsed as a Source.

Parameters:
src - XML source that represents the request body, not null
mimeType - mime-type of the request, may be null if no mime type has been specified
Returns:
the response data object, may return null to indicate that there exists not response
Throws:
javax.xml.transform.TransformerException - - if a transformation exception occurs during the processing of the source
org.xml.sax.SAXException - - if a SAX exception occurs during the processing of the source
java.io.IOException - - if an IO exception occurs during the processing of the source