public class JadexdocServlet
extends javax.servlet.http.HttpServlet
| Modifier and Type | Field and Description |
|---|---|
protected jadex.commons.future.IIntermediateFuture<jadex.bridge.modelinfo.IModelInfo> |
models
The models.
|
protected jadex.commons.future.IFuture<jadex.bridge.IExternalAccess> |
platform
The platform.
|
| Constructor and Description |
|---|
JadexdocServlet() |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy()
Shut down the platform on exit.
|
protected void |
doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Called on each web request.
|
static java.lang.String |
getContentUrl(javax.servlet.http.HttpServletRequest req)
Get model content request.
|
static java.lang.String |
getModelsUrl(javax.servlet.http.HttpServletRequest req)
Get model list request.
|
void |
init()
Init the servlet by starting the Jadex platform.
|
jadex.commons.future.IFuture<jadex.bridge.modelinfo.IModelInfo> |
loadModel(java.lang.String file)
Asynchronously load a model.
|
protected jadex.commons.future.IIntermediateFuture<jadex.bridge.modelinfo.IModelInfo> |
loadModels()
Asynchronously load all models.
|
protected java.util.Set<java.io.File> |
scanForModels(java.util.List<java.net.URL> urls)
Scan classpath URLs for loadable models.
|
doDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, serviceprotected jadex.commons.future.IFuture<jadex.bridge.IExternalAccess> platform
protected jadex.commons.future.IIntermediateFuture<jadex.bridge.modelinfo.IModelInfo> models
public void init()
throws javax.servlet.ServletException
init in class javax.servlet.GenericServletjavax.servlet.ServletExceptionpublic void destroy()
destroy in interface javax.servlet.Servletdestroy in class javax.servlet.GenericServletprotected void doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
java.io.IOException
doGet in class javax.servlet.http.HttpServletjavax.servlet.ServletExceptionjava.io.IOExceptionpublic jadex.commons.future.IFuture<jadex.bridge.modelinfo.IModelInfo> loadModel(java.lang.String file)
protected jadex.commons.future.IIntermediateFuture<jadex.bridge.modelinfo.IModelInfo> loadModels()
protected java.util.Set<java.io.File> scanForModels(java.util.List<java.net.URL> urls)
public static java.lang.String getContentUrl(javax.servlet.http.HttpServletRequest req)
public static java.lang.String getModelsUrl(javax.servlet.http.HttpServletRequest req)