public SynapseXPath getTarget() { return target.getXPath(); }
/** * Set the given XPath as the source XPath * * @param source an XPath to be set as the source */ public void setSource(SynapseXPath source) { this.source.setXPath(source); }
public void setSourceXPathString(String sourceXPathString) { this.source.setXPathString(sourceXPathString); }
OMNode destination = target.selectOMNode(synCtx, synLog); if (destination != null) { if (synLog.isTraceOrDebugEnabled()) { } else if (null == target.getXPath() && null == destination) {
/** * Get the validation Source for the message context * * @param synCtx the current message to validate * @param synLog SynapseLog instance * @return the validation Source for the current message */ private Source getValidationSource(MessageContext synCtx, SynapseLog synLog) throws SynapseException { OMNode validateSource = source.selectOMNode(synCtx, synLog); if (synLog.isTraceOrDebugEnabled()) { synLog.traceOrDebug("Validation source : " + validateSource.toString()); } return AXIOMUtils.asSource(validateSource); }
OMNode destination = target.selectOMNode(synCtx, synLog); if (destination != null) { if (synLog.isTraceOrDebugEnabled()) { String.valueOf(xqItem.getItemAsString())); } else if (target.getXPath() == null) {
public boolean mediate(MessageContext synCtx) { SynapseLog synLog = getLog(synCtx); OMNode node = source.selectOMNode(synCtx, synLog); node.detach(); synCtx.setProperty(property, node); return true; }
public SynapseXPath getSource() { return source.getXPath(); }
/** * Set the given XPath as the source XPath * @param source an XPath to be set as the source */ public void setSource(SynapsePath source) { this.sourcePath = source; if (source instanceof SynapseXPath) { this.source.setXPath((SynapseXPath) source); } }
/** * Get the validation Source for the message context * * @param synCtx the current message to validate * @param synLog SynapseLog instance * @return the validation Source for the current message */ private Source getValidationSource(MessageContext synCtx, SynapseLog synLog) { try { OMNode validateSource = source.selectOMNode(synCtx, synLog); if (synLog.isTraceOrDebugEnabled()) { synLog.traceOrDebug("Validation source : " + validateSource.toString()); } return AXIOMUtils.asSource(validateSource); } catch (Exception e) { handleException("Error accessing source element : " + source, e, synCtx); } return null; // never reaches here }
public void setSourceXPathString(String sourceXPathString) { this.source.setXPathString(sourceXPathString); }
/** * Get the source XPath which yields the source element for validation * * @return the XPath which yields the source element for validation */ public SynapseXPath getSource() { return source.getXPath(); }
public void setSource(SynapseXPath source) { this.source.setXPath(source); }
public boolean mediate(MessageContext synCtx) { SynapseLog synLog = getLog(synCtx); OMNode replacement = (OMNode)synCtx.getProperty(property); OMNode node = target.selectOMNode(synCtx, synLog); node.insertSiblingAfter(replacement); node.detach(); synCtx.setProperty(property, null); return true; }
public SynapseXPath getTarget() { return target.getXPath(); }
public void setTarget(SynapseXPath source) { this.target.setXPath(source); }
OMNode sourceNode = source.selectOMNode(synCtx, synLog); boolean isSoapEnvelope = (sourceNode == synCtx.getEnvelope()); boolean isSoapBody = (sourceNode == synCtx.getEnvelope().getBody());
public SynapseXPath getSource() { return source.getXPath(); }
public void setSource(SynapseXPath source) { this.source.setXPath(source); }
OMNode sourceNode = source.selectOMNode(synCtx, synLog); boolean isSoapEnvelope = (sourceNode == synCtx.getEnvelope()); boolean isSoapBody = (sourceNode == synCtx.getEnvelope().getBody());