org.springframework.extensions.webscripts.servlet
Class WebScriptServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by org.springframework.extensions.webscripts.servlet.WebScriptServlet
All Implemented Interfaces:
Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class WebScriptServlet
extends javax.servlet.http.HttpServlet

Entry point for Web Scripts

Author:
davidc
See Also:
Serialized Form

Field Summary
protected  ServletAuthenticatorFactory authenticatorFactory
           
protected  ConfigService configService
           
protected  RuntimeContainer container
           
protected static ServerProperties serverProperties
          Host Server Configuration
 
Constructor Summary
WebScriptServlet()
           
 
Method Summary
 void init()
           
protected  void initServlet(org.springframework.context.ApplicationContext context)
          Servlet specific initialisation
protected  void service(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
           
static void setLanguageFromRequestHeader(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
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

container

protected RuntimeContainer container

authenticatorFactory

protected ServletAuthenticatorFactory authenticatorFactory

configService

protected ConfigService configService

serverProperties

protected static ServerProperties serverProperties
Host Server Configuration

Constructor Detail

WebScriptServlet

public WebScriptServlet()
Method Detail

init

public void init()
          throws javax.servlet.ServletException
Overrides:
init in class javax.servlet.GenericServlet
Throws:
javax.servlet.ServletException

service

protected void service(javax.servlet.http.HttpServletRequest req,
                       javax.servlet.http.HttpServletResponse res)
                throws javax.servlet.ServletException,
                       IOException
Overrides:
service in class javax.servlet.http.HttpServlet
Throws:
javax.servlet.ServletException
IOException

initServlet

protected void initServlet(org.springframework.context.ApplicationContext context)
Servlet specific initialisation

Parameters:
context -

setLanguageFromRequestHeader

public static void setLanguageFromRequestHeader(javax.servlet.http.HttpServletRequest req)
Apply Client and Repository language locale based on the 'Accept-Language' request header



Copyright © 2009 SpringSource, Inc. All Rights Reserved.