Package org.eclnt.jsfserver.util
Class CCServletBase
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.eclnt.jsfserver.util.CCServletBase
- All Implemented Interfaces:
Serializable
,javax.servlet.Servlet
,javax.servlet.ServletConfig
- Direct Known Subclasses:
AppletStarter
,CCRedirectRiscExtensionServlet
,CCServletBaseWithContextMgmt
,ClientI18NReaderServlet
,ClientLiteralServlet
,CLResourceAccessServlet
,DynamicImageServlet
,ExtCalendarServlet
,FileAccessDelegationServlet
,MonitoringServlet
,ResourceAccessServlet
,RISCStarter
,ServerTimeOutServlet
,SessionInvalidationServlet
,StyleReaderServlet
,UI5Starter
public abstract class CCServletBase
extends javax.servlet.http.HttpServlet
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
void
init()
protected String
proposeContentType
(String extension) Proposes content type dependent from extension.protected void
setContentType
(String uri, javax.servlet.http.HttpServletResponse resp) Automatically derives content type from uri-extension and sets the content type in the repsone.protected void
setContentTypeInResponse
(String contentType, javax.servlet.http.HttpServletResponse resp) Setting of content type in response.Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, service
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
-
Constructor Details
-
CCServletBase
public CCServletBase()
-
-
Method Details
-
init
public void init() throws javax.servlet.ServletException- Overrides:
init
in classjavax.servlet.GenericServlet
- Throws:
javax.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, javax.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:
-