public void setInTemplate(String loc) { inTemplates = createTemplates(loc); }
public void setOutTemplate(String loc) { outTemplates = createTemplates(loc); }
public void setOutTemplate(String loc) { outTemplates = createTemplates(loc); }
public void setInTemplate(String loc) { inTemplates = createTemplates(loc); }
public void setInMediaTemplates(Map<String, String> map) { inMediaTemplates = new HashMap<>(); for (Map.Entry<String, String> entry : map.entrySet()) { inMediaTemplates.put(entry.getKey(), createTemplates(entry.getValue())); } }
public void setOutMediaTemplates(Map<String, String> map) { outMediaTemplates = new HashMap<>(); for (Map.Entry<String, String> entry : map.entrySet()) { outMediaTemplates.put(entry.getKey(), createTemplates(entry.getValue())); } }
public void setInMediaTemplates(Map<String, String> map) { inMediaTemplates = new HashMap<String, Templates>(); for (Map.Entry<String, String> entry : map.entrySet()) { inMediaTemplates.put(entry.getKey(), createTemplates(entry.getValue())); } }
public void setOutMediaTemplates(Map<String, String> map) { outMediaTemplates = new HashMap<String, Templates>(); for (Map.Entry<String, String> entry : map.entrySet()) { outMediaTemplates.put(entry.getKey(), createTemplates(entry.getValue())); } }
protected Templates createTemplates(String loc) { try { return createTemplates(ResourceUtils.getResourceURL(loc, this.getBus())); } catch (Exception ex) { LOG.warning("No template can be created : " + ex.getMessage()); } return null; }
protected Templates createTemplatesFromContext() { MessageContext mc = getContext(); if (mc != null) { String template = (String)mc.getContextualProperty(XSLT_TEMPLATE_PROPERTY); if (template != null) { return createTemplates(template); } } return null; }
protected Templates getTemplatesFromAnnotation(Class<?> cls, Annotation[] anns, MediaType mt) { Templates t = null; XSLTTransform ann = getXsltTransformAnn(anns, mt); if (ann != null) { t = annotationTemplates.get(ann.value()); if (t == null || refreshTemplates) { String path = ann.value(); final String cp = "classpath:"; if (!path.startsWith(cp)) { path = cp + path; } t = createTemplates(path); if (t == null) { createTemplates(ClassLoaderUtils.getResource(ann.value(), cls)); } if (t != null) { annotationTemplates.put(ann.value(), t); } } } return t; }
try { Templates t = createTemplates(getInTemplates(anns, mt), inParamsMap, inProperties); if (t == null && supportJaxbOnly) { return super.unmarshalFromInputStream(unmarshaller, is, anns, mt);
try { Templates t = createTemplates(getInTemplates(mt), inParamsMap, inProperties); if (t == null && supportJaxbOnly) { return super.unmarshalFromInputStream(unmarshaller, is, mt);
throws Exception { Templates t = createTemplates(getOutTemplates(mt), outParamsMap, outProperties); if (t == null && supportJaxbOnly) { super.marshalToOutputStream(ms, obj, os, mt);
throws Exception { Templates t = createTemplates(getOutTemplates(anns, mt), outParamsMap, outProperties); if (t == null && supportJaxbOnly) { super.marshalToOutputStream(ms, obj, os, anns, mt);