com.ibm.portal.resolver.data
Interface URIParser
- All Superinterfaces:
- Disposable
- All Known Subinterfaces:
- ContentHandlerURIParser, SkinURIParser, StaticPageURIParser, ThemeURIParser
-
public interface URIParser
- extends Disposable
Parses the content of the static page that is identified by the URI. This
parser makes use of the DataSource APIs to locate a data source for
the URI and parses the content of this data source.
- Since:
- 7.0
getDataSourceHandler
DataSourceHandler getDataSourceHandler()
- Returns the handler that is currently assigned.
- Returns:
- the handler
parse
void parse(java.net.URI uri,
java.lang.String mode,
java.util.Map<java.lang.String,java.lang.String[]> params)
throws java.io.IOException,
org.xml.sax.SAXException
- Parses the content of the data source and throws events to the attacted
handler. The content of the DataSource is either parsed or served
out of a cache.
- Parameters:
- uri - POC URI of the content
- mode - the mode
- params - parameter map, not null but potentially the empty
map.
- Throws:
- java.io.IOException
- org.xml.sax.SAXException
setDataSourceHandler
DataSourceHandler setDataSourceHandler(DataSourceHandler aHandler)
- Assigns a content handler that receives a callback for the
DataSource that is actually parsed.
- Parameters:
- aHandler - the new handler, not null
- Returns:
- the previous handler