Class ContentPageServlet
- java.lang.Object
-
- jakarta.servlet.GenericServlet
-
- jakarta.servlet.http.HttpServlet
-
- net.anotheria.moskito.web.MoskitoHttpServlet
-
- net.anotheria.anosite.shared.presentation.servlet.BaseAnoSiteServlet
-
- net.anotheria.anosite.content.servlet.ContentPageServlet
-
- All Implemented Interfaces:
jakarta.servlet.Servlet,jakarta.servlet.ServletConfig,Serializable,net.anotheria.moskito.core.producers.IStatsProducer
public class ContentPageServlet extends BaseAnoSiteServlet
This servlet builds and delivers pages (out of pagexs objects) and is therefore one of the main classes in the ano-site framework.- Author:
- lrosenberg
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static StringBEAN_ANOSITE_VERBOSITYIf set more output will be produced by jsps.static CharsetMY_FS_CHARSETCharset for files on filesystem.static StringOVERRIDE_PAGE_TITLEParameter which allows to override the title stored in the page object.
-
Constructor Summary
Constructors Constructor Description ContentPageServlet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidinit(jakarta.servlet.ServletConfig config)protected voidmoskitoDoGet(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse res)protected voidmoskitoDoPost(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse res)protected voidprocessRequest(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse res, boolean submit)Processes the incoming request.-
Methods inherited from class net.anotheria.anosite.shared.presentation.servlet.BaseAnoSiteServlet
extractArtifactName, getProducerId
-
Methods inherited from class net.anotheria.moskito.web.MoskitoHttpServlet
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getCategory, getLastModified, getMonitoringIntervals, getStats, getSubsystem, moskitoDoDelete, moskitoDoHead, moskitoDoOptions, moskitoDoPut, moskitoDoTrace, moskitoGetLastModified, useShortStatList
-
-
-
-
Field Detail
-
OVERRIDE_PAGE_TITLE
public static final String OVERRIDE_PAGE_TITLE
Parameter which allows to override the title stored in the page object.- See Also:
- Constant Field Values
-
BEAN_ANOSITE_VERBOSITY
public static final String BEAN_ANOSITE_VERBOSITY
If set more output will be produced by jsps. Useful in development, but should be removed in production environment. Configured via configureme.- See Also:
- Constant Field Values
-
MY_FS_CHARSET
public static final Charset MY_FS_CHARSET
Charset for files on filesystem.
-
-
Method Detail
-
init
public void init(jakarta.servlet.ServletConfig config) throws jakarta.servlet.ServletException- Specified by:
initin interfacejakarta.servlet.Servlet- Overrides:
initin classnet.anotheria.moskito.web.MoskitoHttpServlet- Throws:
jakarta.servlet.ServletException
-
moskitoDoGet
protected void moskitoDoGet(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse res) throws jakarta.servlet.ServletException, IOException- Overrides:
moskitoDoGetin classnet.anotheria.moskito.web.MoskitoHttpServlet- Throws:
jakarta.servlet.ServletExceptionIOException
-
moskitoDoPost
protected void moskitoDoPost(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse res) throws jakarta.servlet.ServletException, IOException- Overrides:
moskitoDoPostin classnet.anotheria.moskito.web.MoskitoHttpServlet- Throws:
jakarta.servlet.ServletExceptionIOException
-
processRequest
protected void processRequest(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse res, boolean submit) throws jakarta.servlet.ServletException, IOException, net.anotheria.asg.exception.ASGRuntimeException, BoxHandleException, WizardHandlerExceptionProcesses the incoming request.- Parameters:
req-HttpServletRequestres-HttpServletResponsesubmit- true if the request was submitted via post (for calling submit in handlers)- Throws:
jakarta.servlet.ServletException- on errorsIOException- on input output errorsnet.anotheria.asg.exception.ASGRuntimeException- on backend failuresBoxHandleException- on box handle errorsWizardHandlerException- on wizard handle errors
-
-