Class JadexGatewayServlet

  • All Implemented Interfaces:
    java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

    public class JadexGatewayServlet
    extends javax.servlet.http.HttpServlet
    Servlet implementation class WebStarter Parameter 'components' for startup components.
    See Also:
    Serialized Form
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      protected static class  JadexGatewayServlet.ServletCallAccess
      Purge service call ThreadLocal objects, to avoid container leaks.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void destroy()
      Cleanup
      void doGet​(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
      Handle get requests.
      void doPost​(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
      Handle post requests.
      protected java.util.Map<java.lang.String,​java.lang.Object> getComoponentMap​(java.lang.String cname, java.util.Map<java.lang.String,​java.util.Map<java.lang.String,​java.lang.Object>> comps)
      Get the component map.
      void init​(javax.servlet.ServletConfig config)
      The servlet init.
      IExternalAccess startPlatform()
      Start the platform.
      • Methods inherited from class javax.servlet.http.HttpServlet

        doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
      • Methods inherited from class javax.servlet.GenericServlet

        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

      • JADEX_PLATFORM

        public static final java.lang.String JADEX_PLATFORM
        Constant used to store the jadex platform in the application (servlet) context.
        See Also:
        Constant Field Values
      • JADEX_PLATFORM_REFCOUNT

        public static final java.lang.String JADEX_PLATFORM_REFCOUNT
        Constant used to store the jadex platform reference count in the application (servlet) context.
        See Also:
        Constant Field Values
    • Constructor Detail

      • JadexGatewayServlet

        public JadexGatewayServlet()
    • Method Detail

      • init

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

        public IExternalAccess startPlatform()
        Start the platform.
        Returns:
        The platform.
      • getComoponentMap

        protected java.util.Map<java.lang.String,​java.lang.Object> getComoponentMap​(java.lang.String cname,
                                                                                          java.util.Map<java.lang.String,​java.util.Map<java.lang.String,​java.lang.Object>> comps)
        Get the component map.
        Parameters:
        cname - The component name.
        comps - The map of components.
        Returns:
        The component map.
      • doGet

        public void doGet​(javax.servlet.http.HttpServletRequest request,
                          javax.servlet.http.HttpServletResponse response)
                   throws javax.servlet.ServletException,
                          java.io.IOException
        Handle get requests.
        Overrides:
        doGet in class javax.servlet.http.HttpServlet
        Throws:
        javax.servlet.ServletException
        java.io.IOException
      • doPost

        public void doPost​(javax.servlet.http.HttpServletRequest request,
                           javax.servlet.http.HttpServletResponse response)
                    throws javax.servlet.ServletException,
                           java.io.IOException
        Handle post requests.
        Overrides:
        doPost in class javax.servlet.http.HttpServlet
        Throws:
        javax.servlet.ServletException
        java.io.IOException
      • destroy

        public void destroy()
        Cleanup
        Specified by:
        destroy in interface javax.servlet.Servlet
        Overrides:
        destroy in class javax.servlet.GenericServlet