Search in sources :

Example 1 with XSLTTransformer

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;
}
Also used : XSLTTransformer(com.predic8.membrane.core.interceptor.xslt.XSLTTransformer)

Aggregations

XSLTTransformer (com.predic8.membrane.core.interceptor.xslt.XSLTTransformer)1