private DataDecoder getDecoder(ExecutionContext executionContext) throws DataDecodeException { return getDecoder(executionContext.getDeliveryConfig()); }
private DataDecoder getDecoder(ExecutionContext executionContext) throws DataDecodeException { return getDecoder(executionContext.getDeliveryConfig()); }
public AbstractParser(ExecutionContext execContext) { this(execContext, getSAXParserConfiguration(execContext.getDeliveryConfig())); }
public SmooksSAXFilter(ExecutionContext executionContext) { this.executionContext = executionContext; closeSource = ParameterAccessor.getBoolParameter(Filter.CLOSE_SOURCE, true, executionContext.getDeliveryConfig()); closeResult = ParameterAccessor.getBoolParameter(Filter.CLOSE_RESULT, true, executionContext.getDeliveryConfig()); parser = new SAXParser(executionContext); }
private DataDecoder getDecoder(ExecutionContext executionContext) throws DataDecodeException { @SuppressWarnings("unchecked") List decoders = executionContext.getDeliveryConfig().getObjects("decoder:" + typeAlias); if (decoders == null || decoders.isEmpty()) { decoder = DataDecoder.Factory.create(typeAlias); } else if (!(decoders.get(0) instanceof DataDecoder)) { throw new DataDecodeException("Configured decoder '" + typeAlias + ":" + decoders.get(0).getClass().getName() + "' is not an instance of " + DataDecoder.class.getName()); } else { decoder = (DataDecoder) decoders.get(0); } return decoder; }
public SmooksSAXFilter(ExecutionContext executionContext) { this.executionContext = executionContext; closeSource = ParameterAccessor.getBoolParameter(Filter.CLOSE_SOURCE, true, executionContext.getDeliveryConfig()); closeResult = ParameterAccessor.getBoolParameter(Filter.CLOSE_RESULT, true, executionContext.getDeliveryConfig()); parser = new SAXParser(executionContext); }
public SmooksSAXFilter(ExecutionContext executionContext) { this.executionContext = executionContext; closeSource = ParameterAccessor.getBoolParameter(Filter.CLOSE_SOURCE, true, executionContext.getDeliveryConfig()); closeResult = ParameterAccessor.getBoolParameter(Filter.CLOSE_RESULT, true, executionContext.getDeliveryConfig()); parser = new SAXParser(executionContext); }
public SmooksSAXFilter(ExecutionContext executionContext) { this.executionContext = executionContext; closeSource = ParameterAccessor.getBoolParameter(Filter.CLOSE_SOURCE, true, executionContext.getDeliveryConfig()); closeResult = ParameterAccessor.getBoolParameter(Filter.CLOSE_RESULT, true, executionContext.getDeliveryConfig()); parser = new SAXParser(executionContext); }
private void initialiseEmptyElements() { DTDStore.DTDObjectContainer dtd = execContext.getDeliveryConfig().getDTD(); if(dtd != null) { String[] emptyEls = dtd.getEmptyElements(); if(emptyEls != null && emptyEls.length > 0) { Collections.addAll(emptyElements, emptyEls); } } }
private void initialiseEmptyElements() { DTDStore.DTDObjectContainer dtd = execContext.getDeliveryConfig().getDTD(); if(dtd != null) { String[] emptyEls = dtd.getEmptyElements(); if(emptyEls != null && emptyEls.length > 0) { Collections.addAll(emptyElements, emptyEls); } } }
private void initialiseEmptyElements() { DTDStore.DTDObjectContainer dtd = execContext.getDeliveryConfig().getDTD(); if(dtd != null) { String[] emptyEls = dtd.getEmptyElements(); if(emptyEls != null && emptyEls.length > 0) { Collections.addAll(emptyElements, emptyEls); } } }
private void initialiseEmptyElements() { DTDStore.DTDObjectContainer dtd = execContext.getDeliveryConfig().getDTD(); if(dtd != null) { String[] emptyEls = dtd.getEmptyElements(); if(emptyEls != null && emptyEls.length > 0) { for(int i = 0; i < emptyEls.length; i++) { emptyElements.add(emptyEls[i]); } } } }
public DOMBuilder(ExecutionContext execContext, SmooksContentHandler parentContentHandler) { super(execContext, parentContentHandler); this.execContext = execContext; initialiseEmptyElements(); rewriteEntities = ParameterAccessor.getBoolParameter(Filter.ENTITIES_REWRITE, true, execContext.getDeliveryConfig()); }
public DOMBuilder(ExecutionContext execContext, SmooksContentHandler parentContentHandler) { super(execContext, parentContentHandler); this.execContext = execContext; initialiseEmptyElements(); rewriteEntities = ParameterAccessor.getBoolParameter(Filter.ENTITIES_REWRITE, true, execContext.getDeliveryConfig()); }
public DOMBuilder(ExecutionContext execContext, SmooksContentHandler parentContentHandler) { super(execContext, parentContentHandler); this.execContext = execContext; initialiseEmptyElements(); rewriteEntities = ParameterAccessor.getBoolParameter(Filter.ENTITIES_REWRITE, true, execContext.getDeliveryConfig()); }
public DOMBuilder(ExecutionContext execContext, SmooksContentHandler parentContentHandler) { super(execContext, parentContentHandler); this.execContext = execContext; initialiseEmptyElements(); rewriteEntities = ParameterAccessor.getBoolParameter(Filter.ENTITIES_REWRITE, true, execContext.getDeliveryConfig()); }
public void onChildText(SAXElement element, SAXText childText, ExecutionContext executionContext) throws SmooksException, IOException { if(getOutputStreamResource() == null) { if (getAction() != Action.REPLACE && getAction() != Action.BIND_TO) { if (executionContext.getDeliveryConfig().isDefaultSerializationOn()) { targetWriter.onChildText(element, childText, executionContext); } } } }
public void onChildElement(SAXElement element, SAXElement childElement, ExecutionContext executionContext) throws SmooksException, IOException { if(getOutputStreamResource() == null) { if (getAction() != Action.REPLACE && getAction() != Action.BIND_TO) { if (executionContext.getDeliveryConfig().isDefaultSerializationOn()) { targetWriter.onChildElement(element, childElement, executionContext); } } } }
public void onChildText(SAXElement element, SAXText childText, ExecutionContext executionContext) throws SmooksException, IOException { if(getOutputStreamResource() == null) { if (getAction() != Action.REPLACE && getAction() != Action.BIND_TO) { if (executionContext.getDeliveryConfig().isDefaultSerializationOn()) { targetWriter.onChildText(element, childText, executionContext); } } } }
public void onChildElement(SAXElement element, SAXElement childElement, ExecutionContext executionContext) throws SmooksException, IOException { if(getOutputStreamResource() == null) { if (getAction() != Action.REPLACE && getAction() != Action.BIND_TO) { if (executionContext.getDeliveryConfig().isDefaultSerializationOn()) { targetWriter.onChildElement(element, childElement, executionContext); } } } }