Package org.activecomponents.webservice
Class JadexjsDownloadServlet
- java.lang.Object
-
- javax.servlet.GenericServlet
-
- javax.servlet.http.HttpServlet
-
- org.activecomponents.webservice.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 filestatic java.lang.String
JADEXJSNAME
The jadex.js name.
-
Constructor Summary
Constructors Constructor Description JadexjsDownloadServlet()
-
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
-
-
-
-
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
-
-
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 classjavax.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
-
-