use of com.predic8.membrane.core.interceptor.xslt.XSLTTransformer in project service-proxy by membrane.
the class SOAPRESTHelper method getTransformer.
protected XSLTTransformer getTransformer(String ss) throws Exception {
String key = ss == null ? "null" : ss;
XSLTTransformer t = xsltTransformers.get(key);
if (t == null) {
int concurrency = 2 * Runtime.getRuntime().availableProcessors();
t = new XSLTTransformer(ss, router, concurrency);
XSLTTransformer t2 = xsltTransformers.putIfAbsent(key, t);
if (t2 != null)
return t2;
}
return t;
}
Aggregations