Class JadexjsDownloadServlet

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

    public class JadexjsDownloadServlet
    extends javax.servlet.http.HttpServlet
    Download the jadex.js. Tries different alternatives: - local file for live-reloading - directly from classpath via name - from a contained platform-webservice-websocket jar in WEB-INF/libs
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected byte[] jadexjs
      The cached jadex rs file
      static java.lang.String JADEXJSNAME
      The jadex.js name.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void doGet​(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
      Do get method.
      protected byte[] loadJadexJs​(javax.servlet.ServletContext ctx)
      Load jadex.js on server side.
      • Methods inherited from class javax.servlet.http.HttpServlet

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

        destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log
      • Methods inherited from class java.lang.Object

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

      • JADEXJSNAME

        public static final java.lang.String JADEXJSNAME
        The jadex.js name.
        See Also:
        Constant Field Values
      • jadexjs

        protected byte[] jadexjs
        The cached jadex rs file
    • Constructor Detail

      • JadexjsDownloadServlet

        public JadexjsDownloadServlet()
    • Method Detail

      • doGet

        public void doGet​(javax.servlet.http.HttpServletRequest request,
                          javax.servlet.http.HttpServletResponse response)
                   throws java.io.IOException
        Do get method.
        Overrides:
        doGet in class javax.servlet.http.HttpServlet
        Throws:
        java.io.IOException
      • loadJadexJs

        protected byte[] loadJadexJs​(javax.servlet.ServletContext ctx)
                              throws java.io.IOException
        Load jadex.js on server side.
        Parameters:
        ctx -
        Returns:
        Throws:
        java.io.IOException