Class ContentView
java.lang.Object
com.semanticcms.core.servlet.View
com.semanticcms.core.view.content.ContentView
- All Implemented Interfaces:
Comparable<View>
The default content view.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.semanticcms.core.servlet.View
View.Group
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The view name isSemanticCMS.DEFAULT_VIEW_NAME
.Fields inherited from class com.semanticcms.core.servlet.View
TITLE_SEPARATOR
-
Method Summary
Modifier and TypeMethodDescriptionvoid
configureResources
(ServletContext servletContext, HttpServletRequest req, HttpServletResponse resp, Theme theme, Page page, Registry requestRegistry) <__ extends FlowContent<__>>
voiddoView
(ServletContext servletContext, HttpServletRequest request, HttpServletResponse response, __ flow, Page page) boolean
getAllowRobots
(ServletContext servletContext, HttpServletRequest request, HttpServletResponse response, Page page) Uses the page settings.boolean
getDescription
(Page page) getGroup()
getKeywords
(Page page) getLastModified
(ServletContext servletContext, HttpServletRequest request, HttpServletResponse response, Page page) The last modified time of a page is the most recent of:Page.getDateCreated()
Page.getDatePublished()
Page.getDateModified()
Note:Page.getDateReviewed()
is left out because a change in its value alone does not indicate a change in content.getName()
getTitle
(ServletContext servletContext, HttpServletRequest request, HttpServletResponse response, Page page) Methods inherited from class com.semanticcms.core.servlet.View
compareTo, equals, getAuthors, getCanonicalUrl, getCopyright, getLinkCssClass, getLinkId, getLinkParams, getLinks, getScripts, hashCode, isApplicable, isDefault, toString
-
Field Details
-
NAME
The view name isSemanticCMS.DEFAULT_VIEW_NAME
.- See Also:
-
-
Method Details
-
getGroup
-
getDisplay
- Specified by:
getDisplay
in classView
-
getName
-
getAppliesGlobally
public boolean getAppliesGlobally()- Overrides:
getAppliesGlobally
in classView
-
getLastModified
public ReadableInstant getLastModified(ServletContext servletContext, HttpServletRequest request, HttpServletResponse response, Page page) throws ServletException, IOException The last modified time of a page is the most recent of: Note:Page.getDateReviewed()
is left out because a change in its value alone does not indicate a change in content.- Overrides:
getLastModified
in classView
- Throws:
ServletException
IOException
-
getTitle
public String getTitle(ServletContext servletContext, HttpServletRequest request, HttpServletResponse response, Page page) -
getDescription
- Specified by:
getDescription
in classView
-
getKeywords
- Specified by:
getKeywords
in classView
-
getAllowRobots
public boolean getAllowRobots(ServletContext servletContext, HttpServletRequest request, HttpServletResponse response, Page page) throws ServletException, IOException Uses the page settings.- Specified by:
getAllowRobots
in classView
- Throws:
ServletException
IOException
- See Also:
-
configureResources
public void configureResources(ServletContext servletContext, HttpServletRequest req, HttpServletResponse resp, Theme theme, Page page, Registry requestRegistry) - Overrides:
configureResources
in classView
-
doView
public <__ extends FlowContent<__>> void doView(ServletContext servletContext, HttpServletRequest request, HttpServletResponse response, __ flow, Page page) throws ServletException, IOException, SkipPageException - Specified by:
doView
in classView
- Throws:
ServletException
IOException
SkipPageException
-