Codota Logo
SmooksDOMFilter.processVisitorException
Code IndexAdd Codota to your IDE (free)

How to use
processVisitorException
method
in
org.milyn.delivery.dom.SmooksDOMFilter

Best Java code snippets using org.milyn.delivery.dom.SmooksDOMFilter.processVisitorException (Showing top 8 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
FileOutputStream f =
  • Codota IconFile file;new FileOutputStream(file)
  • Codota IconString name;new FileOutputStream(name)
  • Codota IconFile file;new FileOutputStream(file, true)
  • Smart code suggestions by Codota
}
origin: org.milyn/milyn-smooks-all

private void applyAssemblyAfter(Element element, ContentHandlerConfigMap<DOMVisitAfter> configMap) {
  SmooksResourceConfiguration config = configMap.getResourceConfig();
  // Make sure the assembly unit is targeted at this element...
  if (!config.isTargetedAtElement(element, executionContext)) {
    return;
  }
  DOMVisitAfter visitAfter = configMap.getContentHandler();
  try {
    if (logger.isDebugEnabled()) {
      logger.debug("(Assembly) Calling visitAfter on element [" + DomUtils.getXPath(element) + "]. Config [" + config + "]");
    }
    visitAfter.visitAfter(element, executionContext);
    if (eventListener != null) {
      eventListener.onEvent(new ElementVisitEvent(element, configMap, VisitSequence.AFTER));
    }
  } catch (Throwable e) {
    String errorMsg = "(Assembly) visitAfter failed [" + visitAfter.getClass().getName() + "] on [" + executionContext.getDocumentSource() + ":" + DomUtils.getXPath(element) + "].";
    processVisitorException(element, e, configMap, VisitSequence.AFTER, errorMsg);
  }
}
origin: smooks/smooks

private void applyAssemblyAfter(Element element, ContentHandlerConfigMap<DOMVisitAfter> configMap) {
  SmooksResourceConfiguration config = configMap.getResourceConfig();
  // Make sure the assembly unit is targeted at this element...
  if (!config.isTargetedAtElement(element, executionContext)) {
    return;
  }
  DOMVisitAfter visitAfter = configMap.getContentHandler();
  try {
    if (logger.isDebugEnabled()) {
      logger.debug("(Assembly) Calling visitAfter on element [" + DomUtils.getXPath(element) + "]. Config [" + config + "]");
    }
    visitAfter.visitAfter(element, executionContext);
    if (eventListener != null) {
      eventListener.onEvent(new ElementVisitEvent(element, configMap, VisitSequence.AFTER));
    }
  } catch (Throwable e) {
    String errorMsg = "(Assembly) visitAfter failed [" + visitAfter.getClass().getName() + "] on [" + executionContext.getDocumentSource() + ":" + DomUtils.getXPath(element) + "].";
    processVisitorException(element, e, configMap, VisitSequence.AFTER, errorMsg);
  }
}
origin: org.milyn/milyn-smooks-core

private void applyAssemblyAfter(Element element, ContentHandlerConfigMap<DOMVisitAfter> configMap) {
  SmooksResourceConfiguration config = configMap.getResourceConfig();
  // Make sure the assembly unit is targeted at this element...
  if (!config.isTargetedAtElement(element, executionContext)) {
    return;
  }
  DOMVisitAfter visitAfter = configMap.getContentHandler();
  try {
    if (logger.isDebugEnabled()) {
      logger.debug("(Assembly) Calling visitAfter on element [" + DomUtils.getXPath(element) + "]. Config [" + config + "]");
    }
    visitAfter.visitAfter(element, executionContext);
    if (eventListener != null) {
      eventListener.onEvent(new ElementVisitEvent(element, configMap, VisitSequence.AFTER));
    }
  } catch (Throwable e) {
    String errorMsg = "(Assembly) visitAfter failed [" + visitAfter.getClass().getName() + "] on [" + executionContext.getDocumentSource() + ":" + DomUtils.getXPath(element) + "].";
    processVisitorException(element, e, configMap, VisitSequence.AFTER, errorMsg);
  }
}
origin: org.virtuslab/milyn-smooks-core

private void applyAssemblyAfter(Element element, ContentHandlerConfigMap<DOMVisitAfter> configMap) {
  SmooksResourceConfiguration config = configMap.getResourceConfig();
  // Make sure the assembly unit is targeted at this element...
  if (!config.isTargetedAtElement(element, executionContext)) {
    return;
  }
  DOMVisitAfter visitAfter = configMap.getContentHandler();
  try {
    if (logger.isDebugEnabled()) {
      logger.debug("(Assembly) Calling visitAfter on element [" + DomUtils.getXPath(element) + "]. Config [" + config + "]");
    }
    visitAfter.visitAfter(element, executionContext);
    if (eventListener != null) {
      eventListener.onEvent(new ElementVisitEvent(element, configMap, VisitSequence.AFTER));
    }
  } catch (Throwable e) {
    String errorMsg = "(Assembly) visitAfter failed [" + visitAfter.getClass().getName() + "] on [" + executionContext.getDocumentSource() + ":" + DomUtils.getXPath(element) + "].";
    processVisitorException(element, e, configMap, VisitSequence.AFTER, errorMsg);
  }
}
origin: org.virtuslab/milyn-smooks-core

private void applyAssemblyBefores(Element element, List<ContentHandlerConfigMap<DOMVisitBefore>> assemblyBefores) {
  for (int i = 0; i < assemblyBefores.size(); i++) {
    ContentHandlerConfigMap<DOMVisitBefore> configMap = assemblyBefores.get(i);
    SmooksResourceConfiguration config = configMap.getResourceConfig();
    // Make sure the assembly unit is targeted at this element...
    if (!config.isTargetedAtElement(element, executionContext)) {
      continue;
    }
    // Register the targeting event.  No need to register it again in the visitAfter loop...
    if (eventListener != null) {
      eventListener.onEvent(new ResourceTargetingEvent(element, config, VisitSequence.BEFORE, VisitPhase.ASSEMBLY));
    }
    DOMVisitBefore assemblyUnit = configMap.getContentHandler();
    try {
      if (logger.isDebugEnabled()) {
        logger.debug("(Assembly) Calling visitBefore on element [" + DomUtils.getXPath(element) + "]. Config [" + config + "]");
      }
      assemblyUnit.visitBefore(element, executionContext);
      if (eventListener != null) {
        eventListener.onEvent(new ElementVisitEvent(element, configMap, VisitSequence.BEFORE));
      }
    } catch (Throwable e) {
      String errorMsg = "(Assembly) visitBefore failed [" + assemblyUnit.getClass().getName() + "] on [" + executionContext.getDocumentSource() + ":" + DomUtils.getXPath(element) + "].";
      processVisitorException(element, e, configMap, VisitSequence.BEFORE, errorMsg);
    }
  }
}
origin: org.milyn/milyn-smooks-core

  "(Assembly) visitBefore failed [" + assemblyUnit.getClass().getName() + "] on [" + executionContext.getDocumentSource() + ":" + DomUtils.getXPath(element)
    + "].";
processVisitorException(element, e, configMap, VisitSequence.BEFORE, errorMsg);
origin: smooks/smooks

  "(Assembly) visitBefore failed [" + assemblyUnit.getClass().getName() + "] on [" + executionContext.getDocumentSource() + ":" + DomUtils.getXPath(element)
    + "].";
processVisitorException(element, e, configMap, VisitSequence.BEFORE, errorMsg);
origin: org.milyn/milyn-smooks-all

  "(Assembly) visitBefore failed [" + assemblyUnit.getClass().getName() + "] on [" + executionContext.getDocumentSource() + ":" + DomUtils.getXPath(element)
    + "].";
processVisitorException(element, e, configMap, VisitSequence.BEFORE, errorMsg);
org.milyn.delivery.domSmooksDOMFilterprocessVisitorException

Popular methods of SmooksDOMFilter

  • <init>
    Public constructor. Constructs a SmooksDOMFilter instance for delivering content for the supplied ex
  • applyAssembly
  • applyAssemblyAfter
  • applyAssemblyAfters
  • applyAssemblyBefores
  • assemble
    Assemble the supplied element. Recursively iterate down into the elements children.
  • buildProcessingList
    Recurcively build the processing list for the supplied element, iterating over the elements child co
  • close
  • copyList
    Copy the nodes of a NodeList into the supplied list. This is not a clone. It's just a copy of the no
  • doFilter
  • filter
    Filter the supplied W3C Element. Executes the Assembly & Processing phases.
  • getWriter
  • filter,
  • getWriter,
  • serialize

Popular in Java

  • Start an intent from android
  • findViewById (Activity)
  • getSupportFragmentManager (FragmentActivity)
    Return the FragmentManager for interacting with fragments associated with this activity.
  • addToBackStack (FragmentTransaction)
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • DecimalFormat (java.text)
    DecimalFormat is a concrete subclass ofNumberFormat that formats decimal numbers. It has a variety o
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • JComboBox (javax.swing)
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now