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 ClassesNested classes/interfaces inherited from class com.semanticcms.core.servlet.View
View.Group -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe view name isSemanticCMS.DEFAULT_VIEW_NAME.Fields inherited from class com.semanticcms.core.servlet.View
TITLE_SEPARATOR -
Method Summary
Modifier and TypeMethodDescriptionvoidconfigureResources(ServletContext servletContext, HttpServletRequest req, HttpServletResponse resp, Theme theme, Page page, Registry requestRegistry) <__ extends FlowContent<__>>
voiddoView(ServletContext servletContext, HttpServletRequest request, HttpServletResponse response, __ flow, Page page) booleangetAllowRobots(ServletContext servletContext, HttpServletRequest request, HttpServletResponse response, Page page) Uses the page settings.booleangetDescription(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:
getDisplayin classView
-
getName
-
getAppliesGlobally
public boolean getAppliesGlobally()- Overrides:
getAppliesGloballyin 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:
getLastModifiedin classView- Throws:
ServletExceptionIOException
-
getTitle
public String getTitle(ServletContext servletContext, HttpServletRequest request, HttpServletResponse response, Page page) -
getDescription
- Specified by:
getDescriptionin classView
-
getKeywords
- Specified by:
getKeywordsin classView
-
getAllowRobots
public boolean getAllowRobots(ServletContext servletContext, HttpServletRequest request, HttpServletResponse response, Page page) throws ServletException, IOException Uses the page settings.- Specified by:
getAllowRobotsin classView- Throws:
ServletExceptionIOException- See Also:
-
configureResources
public void configureResources(ServletContext servletContext, HttpServletRequest req, HttpServletResponse resp, Theme theme, Page page, Registry requestRegistry) - Overrides:
configureResourcesin classView
-
doView
public <__ extends FlowContent<__>> void doView(ServletContext servletContext, HttpServletRequest request, HttpServletResponse response, __ flow, Page page) throws ServletException, IOException, SkipPageException - Specified by:
doViewin classView- Throws:
ServletExceptionIOExceptionSkipPageException
-
