Package jadex.web.tools.jadexdoc
Class JadexdocServlet
- java.lang.Object
- 
- javax.servlet.GenericServlet
- 
- javax.servlet.http.HttpServlet
- 
- jadex.web.tools.jadexdoc.JadexdocServlet
 
 
 
- 
- All Implemented Interfaces:
- java.io.Serializable,- javax.servlet.Servlet,- javax.servlet.ServletConfig
 
 public class JadexdocServlet extends javax.servlet.http.HttpServletFront controller servlet for jadexdoc application.- See Also:
- Serialized Form
 
- 
- 
Field SummaryFields Modifier and Type Field Description protected IIntermediateFuture<IModelInfo>modelsThe models.protected IFuture<IExternalAccess>platformThe platform.
 - 
Constructor SummaryConstructors Constructor Description JadexdocServlet()
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddestroy()Shut down the platform on exit.protected voiddoGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)Called on each web request.static java.lang.StringgetContentUrl(javax.servlet.http.HttpServletRequest req)Get model content request.static java.lang.StringgetModelsUrl(javax.servlet.http.HttpServletRequest req)Get model list request.voidinit()Init the servlet by starting the Jadex platform.IFuture<IModelInfo>loadModel(java.lang.String file)Asynchronously load a model.protected IIntermediateFuture<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.- 
Methods inherited from class javax.servlet.http.HttpServletdoDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, service
 
- 
 
- 
- 
- 
Field Detail- 
platformprotected IFuture<IExternalAccess> platform The platform.
 - 
modelsprotected IIntermediateFuture<IModelInfo> models The models.
 
- 
 - 
Method Detail- 
initpublic void init() throws javax.servlet.ServletExceptionInit the servlet by starting the Jadex platform.- Overrides:
- initin class- javax.servlet.GenericServlet
- Throws:
- javax.servlet.ServletException
 
 - 
destroypublic void destroy() Shut down the platform on exit.- Specified by:
- destroyin interface- javax.servlet.Servlet
- Overrides:
- destroyin class- javax.servlet.GenericServlet
 
 - 
doGetprotected void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOExceptionCalled on each web request.- Overrides:
- doGetin class- javax.servlet.http.HttpServlet
- Throws:
- javax.servlet.ServletException
- java.io.IOException
 
 - 
loadModelpublic IFuture<IModelInfo> loadModel(java.lang.String file) Asynchronously load a model.
 - 
loadModelsprotected IIntermediateFuture<IModelInfo> loadModels() Asynchronously load all models.
 - 
scanForModelsprotected java.util.Set<java.io.File> scanForModels(java.util.List<java.net.URL> urls) Scan classpath URLs for loadable models.
 - 
getContentUrlpublic static java.lang.String getContentUrl(javax.servlet.http.HttpServletRequest req) Get model content request.
 - 
getModelsUrlpublic static java.lang.String getModelsUrl(javax.servlet.http.HttpServletRequest req) Get model list request.
 
- 
 
-