Package ch.tocco.nice2.dms.spi.publish
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
ModifierConstructorDescriptionprotected
OptimalPathContentProcessorImpl
(OptimalPathService optimalPathService) -
Method Summary
Modifier and TypeMethodDescriptionfinal 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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface ch.tocco.nice2.dms.spi.publish.ContentProcessor
treeNodeClass
-
Constructor Details
-
OptimalPathContentProcessorImpl
-
-
Method Details
-
process
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 interfaceContentProcessor<T extends ContentTreeNode>
-
processIgnoreOptimalPath
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 interfaceOptimalPathContentProcessor<T extends ContentTreeNode>
-
processOptimalPath
protected abstract void processOptimalPath(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp, T contentTreeNode) -
processSkipRedirect
protected abstract void processSkipRedirect(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp, T contentTreeNode)
-