com.zphinx.spine.start
Class SpineServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by com.zphinx.spine.start.SpineServlet
All Implemented Interfaces:
Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class SpineServlet
extends javax.servlet.http.HttpServlet

SpineServlet is a base servlet used to kick start the spine application core. The application is capable of running without the servlet but must be initialised as a running process in a JVM. The function of this Servlet is primarily to initialize the working spine application core.

Client developers using other MVC frameworks are advised to integrate spine as part of their application by:

  1. Using Spine servlet to initialize the the framework whilst declaring a single config file (normally spine_start_configFile.xml), SpineServlet will initialise the framework if added as an additional Servlet declaration in your web.xml
  2. Providing a map which must then be passed to the ApplicationConfigurator instance which will provide the base variables needed by this framework at runtime.
    This method will however require that a dataSource is instantiated and passed to the ApplicationConfigurator at the same time.
  3. ConfigReader can be used to create such a map, and it will automatically create a map containing all information needed by ApplicationConfigurator to instantiate the spine framework( DataSources will also be instantiated by ApplicationConfigurator).
    1. To use SpineServlet, a start configuration file known as startConfigFile must be added to the init params tag of the declared SpineServlet.

      Version:
      $1.0

      Copyright ©Zphinx Software Solutions

      Author:
      David Ladapo
      See Also:
      Serialized Form

      Constructor Summary
      SpineServlet()
                 
       
      Method Summary
      protected  void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
                 
      protected  void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
                 
       void init(javax.servlet.ServletConfig config)
                 
       
      Methods inherited from class javax.servlet.http.HttpServlet
      doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, 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
       

      Constructor Detail

      SpineServlet

      public SpineServlet()
      Method Detail

      init

      public void init(javax.servlet.ServletConfig config)
                throws javax.servlet.ServletException
      Specified by:
      init in interface javax.servlet.Servlet
      Overrides:
      init in class javax.servlet.GenericServlet
      Throws:
      javax.servlet.ServletException

      doGet

      protected void doGet(javax.servlet.http.HttpServletRequest request,
                           javax.servlet.http.HttpServletResponse response)
                    throws javax.servlet.ServletException,
                           IOException
      Overrides:
      doGet in class javax.servlet.http.HttpServlet
      Throws:
      javax.servlet.ServletException
      IOException

      doPost

      protected void doPost(javax.servlet.http.HttpServletRequest request,
                            javax.servlet.http.HttpServletResponse response)
                     throws javax.servlet.ServletException,
                            IOException
      Overrides:
      doPost in class javax.servlet.http.HttpServlet
      Throws:
      javax.servlet.ServletException
      IOException