Class NewClientFileServlet
java.lang.Object
jakarta.servlet.GenericServlet
jakarta.servlet.http.HttpServlet
ch.tocco.nice2.web.core.spi.servlet.StaticFileServlet
ch.tocco.nice2.web.core.impl.servlet.NewClientFileServlet
- All Implemented Interfaces:
jakarta.servlet.Servlet
,jakarta.servlet.ServletConfig
,Serializable
Serves the static file for the new client.
Path and the response content-type can be set by property.
By default the servlet is activated and serves a file. This can be overwritten by setting the activated flag.
- See Also:
-
Field Summary
Fields inherited from class ch.tocco.nice2.web.core.spi.servlet.StaticFileServlet
activated, file
Fields inherited from class jakarta.servlet.http.HttpServlet
LEGACY_DO_HEAD
-
Constructor Summary
ConstructorDescriptionNewClientFileServlet
(org.slf4j.Logger log, RunEnvironmentService runEnvironmentService) -
Method Summary
Modifier and TypeMethodDescriptionprotected String
processFileContent
(InputStreamReader reader) void
setFile
(ModelResource file) Methods inherited from class ch.tocco.nice2.web.core.spi.servlet.StaticFileServlet
doGet, getContentType
Methods inherited from class jakarta.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, init, service, service
Methods inherited from class jakarta.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
-
Constructor Details
-
NewClientFileServlet
@Lazy public NewClientFileServlet(org.slf4j.Logger log, RunEnvironmentService runEnvironmentService)
-
-
Method Details
-
processFileContent
- Overrides:
processFileContent
in classStaticFileServlet
- Throws:
IOException
-
setFile
-