Package com.semanticcms.core.servlet
Class PageServlet
- java.lang.Object
-
- javax.servlet.GenericServlet
-
- javax.servlet.http.HttpServlet
-
- com.semanticcms.core.servlet.PageServlet
-
- All Implemented Interfaces:
Serializable
,Servlet
,ServletConfig
public abstract class PageServlet extends HttpServlet
Automatically sets up the Page and the PageContext.- See Also:
Page
,PageContext
, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PageServlet()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected void
doDelete(Page page)
Page and the PageContext are already setup.protected void
doDelete(HttpServletRequest req, HttpServletResponse resp)
protected void
doGet(Page page)
Page and the PageContext are already setup.protected void
doGet(HttpServletRequest req, HttpServletResponse resp)
protected void
doOptions(Page page)
Page and the PageContext are already setup.protected void
doOptions(HttpServletRequest req, HttpServletResponse resp)
protected void
doPost(Page page)
Page and the PageContext are already setup.protected void
doPost(HttpServletRequest req, HttpServletResponse resp)
protected void
doPut(Page page)
Page and the PageContext are already setup.protected void
doPut(HttpServletRequest req, HttpServletResponse resp)
String
getDescription()
String
getKeywords()
String
getShortTitle()
abstract String
getTitle()
Boolean
getToc()
Defaults to null for "auto".int
getTocLevels()
-
Methods inherited from class javax.servlet.http.HttpServlet
doHead, doTrace, getLastModified, service, service
-
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log
-
-
-
-
Field Detail
-
ENCODING
public static final Charset ENCODING
-
-
Method Detail
-
getTitle
public abstract String getTitle()
- See Also:
Page.getTitle()
-
getShortTitle
public String getShortTitle()
- See Also:
Page.getShortTitle()
-
getDescription
public String getDescription()
- See Also:
Page.getDescription()
-
getKeywords
public String getKeywords()
- See Also:
Page.getKeywords()
-
getToc
public Boolean getToc()
Defaults to null for "auto".- See Also:
Page.getToc()
-
getTocLevels
public int getTocLevels()
- See Also:
Page.getTocLevels()
,Page.DEFAULT_TOC_LEVELS
-
doGet
protected final void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException
- Overrides:
doGet
in classHttpServlet
- Throws:
ServletException
IOException
-
doGet
protected void doGet(Page page) throws ServletException, IOException, SkipPageException
Page and the PageContext are already setup. The response content type has been set to application/xhtml+xml. The response character encoding has been set toENCODING
.
-
doPost
protected final void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException
- Overrides:
doPost
in classHttpServlet
- Throws:
ServletException
IOException
-
doPost
protected void doPost(Page page) throws ServletException, IOException, SkipPageException
Page and the PageContext are already setup. The response content type has been set to application/xhtml+xml. The response character encoding has been set toENCODING
.
-
doPut
protected final void doPut(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException
- Overrides:
doPut
in classHttpServlet
- Throws:
ServletException
IOException
-
doPut
protected void doPut(Page page) throws ServletException, IOException, SkipPageException
Page and the PageContext are already setup. The response content type has been set to application/xhtml+xml. The response character encoding has been set toENCODING
.
-
doDelete
protected final void doDelete(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException
- Overrides:
doDelete
in classHttpServlet
- Throws:
ServletException
IOException
-
doDelete
protected void doDelete(Page page) throws ServletException, IOException, SkipPageException
Page and the PageContext are already setup. The response content type has been set to application/xhtml+xml. The response character encoding has been set toENCODING
.
-
doOptions
protected final void doOptions(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException
- Overrides:
doOptions
in classHttpServlet
- Throws:
ServletException
IOException
-
doOptions
protected void doOptions(Page page) throws ServletException, IOException, SkipPageException
Page and the PageContext are already setup. The response content type has been set to application/xhtml+xml. The response character encoding has been set toENCODING
.
-
-