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

    Fields
    Modifier and Type
    Field
    Description
     
    protected org.springframework.extensions.config.ConfigService
     
     
    protected static ServerProperties
    Host Server Configuration

    Fields inherited from class jakarta.servlet.http.HttpServlet

    LEGACY_DO_HEAD
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    protected void
    initServlet(org.springframework.context.ApplicationContext context)
    Servlet specific initialisation
    protected void
    service(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse res)
     
    static void
    setLanguageFromRequestHeader(jakarta.servlet.http.HttpServletRequest req)
    Apply Client and Repository language locale based on the 'Accept-Language' request header

    Methods inherited from class jakarta.servlet.http.HttpServlet

    doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, init, service

    Methods inherited from class jakarta.servlet.GenericServlet

    destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, log, log

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • container

      protected RuntimeContainer container
    • authenticatorFactory

      protected ServletAuthenticatorFactory authenticatorFactory
    • configService

      protected org.springframework.extensions.config.ConfigService configService
    • serverProperties

      protected static ServerProperties serverProperties
      Host Server Configuration
  • Constructor Details

    • WebScriptServlet

      public WebScriptServlet()
  • Method Details

    • init

      public void init() throws jakarta.servlet.ServletException
      Overrides:
      init in class jakarta.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:
      service in class jakarta.servlet.http.HttpServlet
      Throws:
      jakarta.servlet.ServletException
      IOException
    • 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