- java.lang.Object
-
- com.semanticcms.core.servlet.impl.PageImpl
-
public final class PageImpl extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
PageImpl.PageImplBody<Ex extends Throwable>
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <Ex extends Throwable>
voiddoPageImpl(ServletContext servletContext, HttpServletRequest request, HttpServletResponse response, PageRef pageRef, ReadableDateTime dateCreated, ReadableDateTime datePublished, ReadableDateTime dateModified, ReadableDateTime dateReviewed, Serialization serialization, Doctype doctype, Boolean autonli, Boolean indent, String title, String shortTitle, String description, String keywords, Boolean allowRobots, Boolean toc, int tocLevels, boolean allowParentMismatch, boolean allowChildMismatch, Map<String,Object> properties, PageImpl.PageImplBody<Ex> body)
static void
fullVerifyParentChild(ServletContext servletContext, HttpServletRequest request, HttpServletResponse response, Page page)
Performs full parent/child verifications of the provided page.static void
verifyChildToParent(ChildRef childRef, PageRef parentPageRef, Set<ChildRef> childRefs)
Verified one child-parent relationship.static void
verifyChildToParent(PageRef childPageRef, PageRef parentPageRef, Set<ChildRef> childRefs)
Verified one child-parent relationship.static void
verifyParentToChild(PageRef parentPageRef, PageRef childPageRef, Set<ParentRef> parentRefs)
Verified one parent-child relationship.static void
verifyParentToChild(ParentRef parentRef, PageRef childPageRef, Set<ParentRef> parentRefs)
Verified one parent-child relationship.
-
-
-
Method Detail
-
verifyChildToParent
public static void verifyChildToParent(ChildRef childRef, PageRef parentPageRef, Set<ChildRef> childRefs) throws ServletException
Verified one child-parent relationship.- Throws:
ServletException
- if verification failed
-
verifyChildToParent
public static void verifyChildToParent(PageRef childPageRef, PageRef parentPageRef, Set<ChildRef> childRefs) throws ServletException
Verified one child-parent relationship.- Throws:
ServletException
- if verification failed
-
verifyParentToChild
public static void verifyParentToChild(ParentRef parentRef, PageRef childPageRef, Set<ParentRef> parentRefs) throws ServletException
Verified one parent-child relationship.- Throws:
ServletException
- if verification failed
-
verifyParentToChild
public static void verifyParentToChild(PageRef parentPageRef, PageRef childPageRef, Set<ParentRef> parentRefs) throws ServletException
Verified one parent-child relationship.- Throws:
ServletException
- if verification failed
-
fullVerifyParentChild
public static void fullVerifyParentChild(ServletContext servletContext, HttpServletRequest request, HttpServletResponse response, Page page) throws ServletException, IOException
Performs full parent/child verifications of the provided page. This is normally not needed for pages that have been added to the cache (PAGE/META level), as verification is done within the cache. This is used for BODY level captures which are not put in the cache and desire full verification.- Throws:
ServletException
- if verification failedIOException
-
doPageImpl
public static <Ex extends Throwable> void doPageImpl(ServletContext servletContext, HttpServletRequest request, HttpServletResponse response, PageRef pageRef, ReadableDateTime dateCreated, ReadableDateTime datePublished, ReadableDateTime dateModified, ReadableDateTime dateReviewed, Serialization serialization, Doctype doctype, Boolean autonli, Boolean indent, String title, String shortTitle, String description, String keywords, Boolean allowRobots, Boolean toc, int tocLevels, boolean allowParentMismatch, boolean allowChildMismatch, Map<String,Object> properties, PageImpl.PageImplBody<Ex> body) throws Ex extends Throwable, ServletException, IOException, SkipPageException
- Type Parameters:
Ex
- An arbitrary exception type that may be thrown- Parameters:
pageRef
- the default path to this page, this might be changed during page processing- Throws:
Ex extends Throwable
ServletException
IOException
SkipPageException
-
-