Package org.eclnt.jsfserver.util
Class CCServletBase
java.lang.Object
jakarta.servlet.GenericServlet
jakarta.servlet.http.HttpServlet
org.eclnt.jsfserver.util.CCServletBase
- All Implemented Interfaces:
jakarta.servlet.Servlet,jakarta.servlet.ServletConfig,Serializable
- Direct Known Subclasses:
AppletStarter,CCRedirectRiscExtensionServlet,CCServletBaseWithContextMgmt,ClientI18NReaderServlet,ClientLiteralServlet,CLResourceAccessServlet,DynamicImageServlet,ExtCalendarServlet,FacesServlet,FileAccessDelegationServlet,MonitoringServlet,ResourceAccessServlet,RISCPageServlet,RISCStarter,ServerTimeOutServlet,SessionInvalidationServlet,StyleReaderServlet,UI5Starter
public abstract class CCServletBase
extends jakarta.servlet.http.HttpServlet
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanvoidinit()protected StringproposeContentType(String extension) Proposes content type dependent from extension.protected voidsetContentType(String uri, jakarta.servlet.http.HttpServletResponse resp) Automatically derives content type from uri-extension and sets the content type in the repsone.protected voidsetContentTypeInResponse(String contentType, jakarta.servlet.http.HttpServletResponse resp) Setting of content type in response.Methods inherited from class jakarta.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, serviceMethods inherited from class jakarta.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
-
Constructor Details
-
CCServletBase
public CCServletBase()
-
-
Method Details
-
init
public void init() throws jakarta.servlet.ServletException- Overrides:
initin classjakarta.servlet.GenericServlet- Throws:
jakarta.servlet.ServletException
-
checkIfToInitializeCCEnvironment
protected boolean checkIfToInitializeCCEnvironment() -
setContentType
Automatically derives content type from uri-extension and sets the content type in the repsone.- Parameters:
uri-resp-
-
setContentTypeInResponse
protected void setContentTypeInResponse(String contentType, jakarta.servlet.http.HttpServletResponse resp) Setting of content type in response. Dependent on the content type also other acitivites are executed, e.g. in case of content type "application/octet" the header attribute "Content-Disposition" is set to "attachment".- Parameters:
resp-contentType-
-
proposeContentType
Proposes content type dependent from extension. Only is implemented for very basic content-types, otherwise returns "application/"+extension.- Parameters:
extension-- Returns:
-