Class OptimalPathContentProcessorImpl<T extends ContentTreeNode>

java.lang.Object
ch.tocco.nice2.dms.spi.publish.OptimalPathContentProcessorImpl<T>
All Implemented Interfaces:
ContentProcessor<T>, OptimalPathContentProcessor<T>
Direct Known Subclasses:
PageContentProcessor, ResourceContentProcessor

public abstract class OptimalPathContentProcessorImpl<T extends ContentTreeNode> extends Object implements OptimalPathContentProcessor<T>
  • Constructor Summary Link icon

    Constructors
    Modifier
    Constructor
    Description
    protected
     
  • Method Summary Link icon

    Modifier and Type
    Method
    Description
    final void
    process(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp, T contentTreeNode)
    Check whether the current request URL and the optimal path of the resolved node are equal and redirect to the optimal path if this is not the case.
    final void
    processIgnoreOptimalPath(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp, T contentTreeNode)
    Prevent the processor from redirecting to the optimal path and thus force the processor to process the node directly.
    protected abstract void
    processOptimalPath(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp, T contentTreeNode)
     
    protected abstract void
    processSkipRedirect(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp, T contentTreeNode)
     

    Methods inherited from class java.lang.Object Link icon

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface ch.tocco.nice2.dms.spi.publish.ContentProcessor Link icon

    treeNodeClass
  • Constructor Details Link icon

    • OptimalPathContentProcessorImpl Link icon

      protected OptimalPathContentProcessorImpl(OptimalPathService optimalPathService)
  • Method Details Link icon

    • process Link icon

      public final void process(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp, T contentTreeNode)
      Check whether the current request URL and the optimal path of the resolved node are equal and redirect to the optimal path if this is not the case. If we are already on the optimal path, process the node.
      Specified by:
      process in interface ContentProcessor<T extends ContentTreeNode>
    • processIgnoreOptimalPath Link icon

      public final void processIgnoreOptimalPath(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp, T contentTreeNode)
      Description copied from interface: OptimalPathContentProcessor
      Prevent the processor from redirecting to the optimal path and thus force the processor to process the node directly.
      Specified by:
      processIgnoreOptimalPath in interface OptimalPathContentProcessor<T extends ContentTreeNode>
    • processOptimalPath Link icon

      protected abstract void processOptimalPath(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp, T contentTreeNode)
    • processSkipRedirect Link icon

      protected abstract void processSkipRedirect(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp, T contentTreeNode)