public interface RewriterController
Modifier and Type | Field and Description |
---|---|
static String |
SERVICE_NAME |
Modifier and Type | Method and Description |
---|---|
ParserAdaptor |
createParserAdaptor(String mimeType)
Creates a Parser Adaptor for the given mime type
The Parser Adaptor implementation is configured in the service configuration.
|
Rewriter |
createRewriter()
Creates a basic rewriter that does not support rulesets configurations.
|
RulesetRewriter |
createRewriter(Ruleset ruleset)
Creates a rewriter that supports rulesets configurations.
|
Ruleset |
loadRuleset(InputStream input)
Loads a XML-based Rewriter Ruleset given a stream to the XML configuration.
|
Ruleset |
loadRuleset(Reader reader)
Loads a XML-based Rewriter Ruleset given a reader to the XML configuration.
|
Ruleset |
lookupRuleset(String id)
Lookup a Ruleset given a ruleset identifier.
|
static final String SERVICE_NAME
Rewriter createRewriter() throws IllegalAccessException, InstantiationException
InstantiationException
IllegalAccessException
RulesetRewriter createRewriter(Ruleset ruleset) throws RewriterException
ruleset
- The ruleset configuration to control the rewriter.RewriterException
ParserAdaptor createParserAdaptor(String mimeType) throws RewriterException
mimeType
- The mimetype to create a parser adaptor for.RewriterException
Ruleset loadRuleset(Reader reader)
reader
- The stream to the XML configuration.Ruleset lookupRuleset(String id)
id
- The identifier for the Ruleset.Ruleset loadRuleset(InputStream input)
reader
- The stream to the XML configuration.Copyright © 2008–2015 The Apache Software Foundation. All rights reserved.