Package jadex.extension.rs.publish
Class JadexGatewayServlet
- java.lang.Object
 - 
- jakarta.servlet.GenericServlet
 - 
- jakarta.servlet.http.HttpServlet
 - 
- jadex.extension.rs.publish.JadexGatewayServlet
 
 
 
 
- 
- All Implemented Interfaces:
 jakarta.servlet.Servlet,jakarta.servlet.ServletConfig,java.io.Serializable
public class JadexGatewayServlet extends jakarta.servlet.http.HttpServletServlet implementation class WebStarter Parameter 'components' for startup components.- See Also:
 - Serialized Form
 
 
- 
- 
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static classJadexGatewayServlet.ServletCallAccessPurge service call ThreadLocal objects, to avoid container leaks. 
- 
Field Summary
Fields Modifier and Type Field Description protected IRequestHandlerServicehandlerThe request handler.static java.lang.StringJADEX_PLATFORMConstant used to store the jadex platform in the application (servlet) context.static java.lang.StringJADEX_PLATFORM_REFCOUNTConstant used to store the jadex platform reference count in the application (servlet) context.protected IExternalAccessplatformThe Jadex platform. 
- 
Constructor Summary
Constructors Constructor Description JadexGatewayServlet() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddestroy()CleanupvoiddoGet(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response)Handle get requests.voiddoPost(jakarta.servlet.http.HttpServletRequest request, jakarta.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.voidinit(jakarta.servlet.ServletConfig config)The servlet init.IExternalAccessstartPlatform()Start the platform.- 
Methods inherited from class jakarta.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service 
 - 
 
 - 
 
- 
- 
Field Detail
- 
JADEX_PLATFORM
public static final java.lang.String JADEX_PLATFORM
Constant used to store the jadex platform in the application (servlet) context.- See Also:
 - Constant Field Values
 
 
- 
JADEX_PLATFORM_REFCOUNT
public static final java.lang.String JADEX_PLATFORM_REFCOUNT
Constant used to store the jadex platform reference count in the application (servlet) context.- See Also:
 - Constant Field Values
 
 
- 
platform
protected IExternalAccess platform
The Jadex platform. 
- 
handler
protected IRequestHandlerService handler
The request handler. 
 - 
 
- 
Method Detail
- 
init
public void init(jakarta.servlet.ServletConfig config) throws jakarta.servlet.ServletExceptionThe servlet init.- Specified by:
 initin interfacejakarta.servlet.Servlet- Overrides:
 initin classjakarta.servlet.GenericServlet- Throws:
 jakarta.servlet.ServletException
 
- 
startPlatform
public IExternalAccess startPlatform()
Start the platform.- Returns:
 - The platform.
 
 
- 
getComoponentMap
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.- Parameters:
 cname- The component name.comps- The map of components.- Returns:
 - The component map.
 
 
- 
doGet
public void doGet(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) throws jakarta.servlet.ServletException, java.io.IOExceptionHandle get requests.- Overrides:
 doGetin classjakarta.servlet.http.HttpServlet- Throws:
 jakarta.servlet.ServletExceptionjava.io.IOException
 
- 
doPost
public void doPost(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) throws jakarta.servlet.ServletException, java.io.IOExceptionHandle post requests.- Overrides:
 doPostin classjakarta.servlet.http.HttpServlet- Throws:
 jakarta.servlet.ServletExceptionjava.io.IOException
 
- 
destroy
public void destroy()
Cleanup- Specified by:
 destroyin interfacejakarta.servlet.Servlet- Overrides:
 destroyin classjakarta.servlet.GenericServlet
 
 - 
 
 -