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
ConstructorsModifierConstructorDescriptionprotectedOptimalPathContentProcessorImpl(OptimalPathService optimalPathService) -
Method Summary
Modifier and TypeMethodDescriptionfinal voidprocess(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 voidprocessIgnoreOptimalPath(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 voidprocessOptimalPath(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp, T contentTreeNode) protected abstract voidprocessSkipRedirect(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, waitMethods 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:
processin 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:OptimalPathContentProcessorPrevent the processor from redirecting to the optimal path and thus force the processor to process the node directly.- Specified by:
processIgnoreOptimalPathin 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)
-