public final class XMLConfigDigester extends Object
SmooksResourceConfiguration file (.cdrl).| Modifier and Type | Field and Description |
|---|---|
static String |
DTD_V10 |
static String |
XSD_V10 |
static String |
XSD_V11 |
| Constructor and Description |
|---|
XMLConfigDigester(SmooksResourceConfigurationList list)
Private constructor.
|
public static final String DTD_V10
public static final String XSD_V10
public static final String XSD_V11
public XMLConfigDigester(SmooksResourceConfigurationList list)
digestConfig(java.io.InputStream, String) method.getExtenededConfigDigester(String) method.digestConfig(java.io.InputStream, String) method is public and always calls
setExtentionDigestOff(). The getExtenededConfigDigester(String) method is
private and always calls setExtentionDigestOn(). Playing with the
public/private nature of these methods may effect the behavior of the extentionDigestOn
ThreadLocal.list - Config list.public static SmooksResourceConfigurationList digestConfig(InputStream stream, String baseURI, Map<String,Smooks> extendedConfigDigesters) throws SAXException, IOException, URISyntaxException, SmooksConfigurationException
stream - The stream.baseURI - The base URI to be associated with the configuration stream.extendedConfigDigesters - Config digesters.SmooksResourceConfigurationList containing the list of
SmooksResourceConfigurations defined in the
XML configuration.SAXException - Error parsing the XML stream.IOException - Error reading the XML stream.SmooksConfigurationException - Invalid configuration..URISyntaxExceptionpublic static SmooksResourceConfigurationList digestConfig(InputStream stream, String baseURI, Map<String,Smooks> extendedConfigDigesters, ClassLoader classLoader) throws SAXException, IOException, URISyntaxException, SmooksConfigurationException
stream - The stream.baseURI - The base URI to be associated with the configuration stream.extendedConfigDigesters - Config digesters.classLoader - The ClassLoader to be used.SmooksResourceConfigurationList containing the list of
SmooksResourceConfigurations defined in the
XML configuration.SAXException - Error parsing the XML stream.IOException - Error reading the XML stream.SmooksConfigurationException - Invalid configuration..URISyntaxExceptionpublic static SmooksResourceConfigurationList digestConfig(InputStream stream, String baseURI) throws SAXException, IOException, URISyntaxException, SmooksConfigurationException
stream - The stream.baseURI - The base URI to be associated with the configuration stream.SmooksResourceConfigurationList containing the list of
SmooksResourceConfigurations defined in the
XML configuration.SAXException - Error parsing the XML stream.IOException - Error reading the XML stream.SmooksConfigurationException - Invalid configuration..URISyntaxExceptionpublic static SmooksResourceConfigurationList digestConfig(InputStream stream, String baseURI, ClassLoader classLoader) throws SAXException, IOException, URISyntaxException, SmooksConfigurationException
stream - The stream.baseURI - The base URI to be associated with the configuration stream.SmooksResourceConfigurationList containing the list of
SmooksResourceConfigurations defined in the
XML configuration.SAXException - Error parsing the XML stream.IOException - Error reading the XML stream.SmooksConfigurationException - Invalid configuration..URISyntaxExceptionpublic SmooksResourceConfigurationList getResourceList()
public ExpressionEvaluator digestCondition(Element conditionElement) throws SmooksConfigurationException
SmooksConfigurationExceptionpublic String getCurrentPath()
public void addConditionEvaluator(String id, ExpressionEvaluator evaluator)
public ExpressionEvaluator getConditionEvaluator(String idRef)
Copyright © 2020. All rights reserved.