use of com.ctrip.framework.dal.cluster.client.exception.ClusterConfigException in project dal by ctripcorp.
the class ClusterConfigXMLParser method parse.
@Override
public ClusterConfig parse(InputStream stream, DalConfigCustomizedOption customizedOption) {
try {
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
factory.setFeature(XMLConstants.FEATURE_SECURE_PROCESSING, true);
Document doc = factory.newDocumentBuilder().parse(stream);
return parse(doc, customizedOption);
} catch (Throwable t) {
throw new ClusterConfigException("parse cluster config error", t);
}
}
Aggregations