Class WebScriptServlet
java.lang.Object
jakarta.servlet.GenericServlet
jakarta.servlet.http.HttpServlet
org.springframework.extensions.webscripts.servlet.WebScriptServlet
- All Implemented Interfaces:
jakarta.servlet.Servlet,jakarta.servlet.ServletConfig,Serializable
public class WebScriptServlet
extends jakarta.servlet.http.HttpServlet
Entry point for Web Scripts
- Author:
- davidc
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ServletAuthenticatorFactoryprotected org.springframework.extensions.config.ConfigServiceprotected RuntimeContainerprotected static ServerPropertiesHost Server ConfigurationFields inherited from class jakarta.servlet.http.HttpServlet
LEGACY_DO_HEAD -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidinit()protected voidinitServlet(org.springframework.context.ApplicationContext context) Servlet specific initialisationprotected voidservice(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse res) static voidsetLanguageFromRequestHeader(jakarta.servlet.http.HttpServletRequest req) Apply Client and Repository language locale based on the 'Accept-Language' request headerMethods inherited from class jakarta.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, init, serviceMethods inherited from class jakarta.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, log, log
-
Field Details
-
container
-
authenticatorFactory
-
configService
protected org.springframework.extensions.config.ConfigService configService -
serverProperties
Host Server Configuration
-
-
Constructor Details
-
WebScriptServlet
public WebScriptServlet()
-
-
Method Details
-
init
public void init() throws jakarta.servlet.ServletException- Overrides:
initin classjakarta.servlet.GenericServlet- Throws:
jakarta.servlet.ServletException
-
service
protected void service(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse res) throws jakarta.servlet.ServletException, IOException - Overrides:
servicein classjakarta.servlet.http.HttpServlet- Throws:
jakarta.servlet.ServletExceptionIOException
-
initServlet
protected void initServlet(org.springframework.context.ApplicationContext context) Servlet specific initialisation- Parameters:
context- ApplicationContext
-
setLanguageFromRequestHeader
public static void setLanguageFromRequestHeader(jakarta.servlet.http.HttpServletRequest req) Apply Client and Repository language locale based on the 'Accept-Language' request header
-