- All Implemented Interfaces:
ElementWriter
SemanticCMS newsfeeds in a Servlet environment.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.semanticcms.core.servlet.Element
Element.Body<E extends Element>, Element.PageContextBody<E extends Element>, Element.PageContextNoElementBody -
Field Summary
Fields inherited from class com.semanticcms.core.servlet.Element
element, request, response, servletContext -
Constructor Summary
ConstructorsConstructorDescriptionNews(News element, ZonedDateTime pubDate) Creates news in the current page context.News(News element, ZonedDateTime pubDate, String description) Creates news in the current page context.News(ServletContext servletContext, HttpServletRequest request, HttpServletResponse response, News element, ZonedDateTime pubDate) Creates news.News(ServletContext servletContext, HttpServletRequest request, HttpServletResponse response, News element, ZonedDateTime pubDate, String description) Creates news.News(ServletContext servletContext, HttpServletRequest request, HttpServletResponse response, ZonedDateTime pubDate) Creates news.News(ServletContext servletContext, HttpServletRequest request, HttpServletResponse response, ZonedDateTime pubDate, String description) Creates news.News(ZonedDateTime pubDate) Creates news in the current page context.News(ZonedDateTime pubDate, String description) Creates news in the current page context. -
Method Summary
Modifier and TypeMethodDescriptionallowRobots(Boolean allowRobots) description(String description) protected voiddoBody(CaptureLevel captureLevel, Element.Body<? super News> body) voidwriteTo(Writer out, ElementContext context)
-
Constructor Details
-
News
public News(ServletContext servletContext, HttpServletRequest request, HttpServletResponse response, News element, ZonedDateTime pubDate) Creates news. -
News
public News(ServletContext servletContext, HttpServletRequest request, HttpServletResponse response, ZonedDateTime pubDate) Creates news. -
News
public News(ServletContext servletContext, HttpServletRequest request, HttpServletResponse response, News element, ZonedDateTime pubDate, String description) Creates news. -
News
public News(ServletContext servletContext, HttpServletRequest request, HttpServletResponse response, ZonedDateTime pubDate, String description) Creates news. -
News
Creates news in the current page context.- See Also:
-
News
Creates news in the current page context.- See Also:
-
News
Creates news in the current page context.- See Also:
-
News
Creates news in the current page context.- See Also:
-
-
Method Details
-
id
-
book
- Returns:
this
-
page
- Returns:
this
-
element
- Returns:
this
-
view
- Returns:
this
-
title
- Returns:
this
-
description
- Returns:
this
-
allowRobots
- Returns:
this
-
doBody
protected void doBody(CaptureLevel captureLevel, Element.Body<? super News> body) throws ServletException, IOException, SkipPageException - Overrides:
doBodyin classElement<News>- Throws:
ServletExceptionIOExceptionSkipPageException
-
writeTo
- Throws:
IOExceptionServletException
-
