public class JadexGatewayServlet
extends javax.servlet.http.HttpServlet
| Modifier and Type | Class and Description |
|---|---|
protected static class |
JadexGatewayServlet.ServletCallAccess
Purge service call ThreadLocal objects,
to avoid container leaks.
|
| Modifier and Type | Field and Description |
|---|---|
protected IRequestHandlerService |
handler
The request handler.
|
static java.lang.String |
JADEX_PLATFORM
Constant used to store the jadex platform in the application (servlet) context.
|
static java.lang.String |
JADEX_PLATFORM_REFCOUNT
Constant used to store the jadex platform reference count in the application (servlet) context.
|
protected jadex.bridge.IExternalAccess |
platform
The Jadex platform.
|
| Constructor and Description |
|---|
JadexGatewayServlet() |
| Modifier and Type | Method and 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.
|
jadex.bridge.IExternalAccess |
startPlatform()
Start the platform.
|
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, servicepublic static final java.lang.String JADEX_PLATFORM
public static final java.lang.String JADEX_PLATFORM_REFCOUNT
protected jadex.bridge.IExternalAccess platform
protected IRequestHandlerService handler
public void init(javax.servlet.ServletConfig config)
throws javax.servlet.ServletException
init in interface javax.servlet.Servletinit in class javax.servlet.GenericServletjavax.servlet.ServletExceptionpublic jadex.bridge.IExternalAccess startPlatform()
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)
cname - The component name.comps - The map of components.public 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 void doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
java.io.IOException
doPost in class javax.servlet.http.HttpServletjavax.servlet.ServletExceptionjava.io.IOExceptionpublic void destroy()
destroy in interface javax.servlet.Servletdestroy in class javax.servlet.GenericServlet