congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
SmooksDOMFilter.processVisitorException
Code IndexAdd Tabnine 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 1,395)

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

  • Finding current android device location
  • runOnUiThread (Activity)
  • setScale (BigDecimal)
  • findViewById (Activity)
  • Point (java.awt)
    A point representing a location in (x,y) coordinate space, specified in integer precision.
  • String (java.lang)
  • Socket (java.net)
    Provides a client-side TCP socket.
  • SortedSet (java.util)
    SortedSet is a Set which iterates over its elements in a sorted order. The order is determined eithe
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now