Class WebScriptServlet
- java.lang.Object
-
- javax.servlet.GenericServlet
-
- javax.servlet.http.HttpServlet
-
- org.springframework.extensions.webscripts.servlet.WebScriptServlet
-
- All Implemented Interfaces:
java.io.Serializable,javax.servlet.Servlet,javax.servlet.ServletConfig
public class WebScriptServlet extends javax.servlet.http.HttpServletEntry point for Web Scripts- Author:
- davidc
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected ServletAuthenticatorFactoryauthenticatorFactoryprotected org.springframework.extensions.config.ConfigServiceconfigServiceprotected RuntimeContainercontainerprotected static ServerPropertiesserverPropertiesHost Server Configuration
-
Constructor Summary
Constructors Constructor Description WebScriptServlet()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidinit()protected voidinitServlet(org.springframework.context.ApplicationContext context)Servlet specific initialisationprotected voidservice(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)static voidsetLanguageFromRequestHeader(javax.servlet.http.HttpServletRequest req)Apply Client and Repository language locale based on the 'Accept-Language' request header-
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service
-
-
-
-
Field Detail
-
container
protected RuntimeContainer container
-
authenticatorFactory
protected ServletAuthenticatorFactory authenticatorFactory
-
configService
protected org.springframework.extensions.config.ConfigService configService
-
serverProperties
protected static ServerProperties serverProperties
Host Server Configuration
-
-
Method Detail
-
init
public void init() throws javax.servlet.ServletException- Overrides:
initin classjavax.servlet.GenericServlet- Throws:
javax.servlet.ServletException
-
service
protected void service(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) throws javax.servlet.ServletException, java.io.IOException- Overrides:
servicein classjavax.servlet.http.HttpServlet- Throws:
javax.servlet.ServletExceptionjava.io.IOException
-
initServlet
protected void initServlet(org.springframework.context.ApplicationContext context)
Servlet specific initialisation- Parameters:
context- ApplicationContext
-
setLanguageFromRequestHeader
public static void setLanguageFromRequestHeader(javax.servlet.http.HttpServletRequest req)
Apply Client and Repository language locale based on the 'Accept-Language' request header
-
-