Package jadex.extension.rs.publish
Class JadexGatewayServlet
- java.lang.Object
- 
- javax.servlet.GenericServlet
- 
- javax.servlet.http.HttpServlet
- 
- jadex.extension.rs.publish.JadexGatewayServlet
 
 
 
- 
- All Implemented Interfaces:
- java.io.Serializable,- javax.servlet.Servlet,- javax.servlet.ServletConfig
 
 public class JadexGatewayServlet extends javax.servlet.http.HttpServletServlet implementation class WebStarter Parameter 'components' for startup components.- See Also:
- Serialized Form
 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description protected static classJadexGatewayServlet.ServletCallAccessPurge service call ThreadLocal objects, to avoid container leaks.
 - 
Field SummaryFields 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 SummaryConstructors Constructor Description JadexGatewayServlet()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddestroy()CleanupvoiddoGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)Handle get requests.voiddoPost(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.voidinit(javax.servlet.ServletConfig config)The servlet init.IExternalAccessstartPlatform()Start the platform.- 
Methods inherited from class javax.servlet.http.HttpServletdoDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
 
- 
 
- 
- 
- 
Field Detail- 
JADEX_PLATFORMpublic 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_REFCOUNTpublic 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
 
 - 
platformprotected IExternalAccess platform The Jadex platform.
 - 
handlerprotected IRequestHandlerService handler The request handler.
 
- 
 - 
Method Detail- 
initpublic void init(javax.servlet.ServletConfig config) throws javax.servlet.ServletExceptionThe servlet init.- Specified by:
- initin interface- javax.servlet.Servlet
- Overrides:
- initin class- javax.servlet.GenericServlet
- Throws:
- javax.servlet.ServletException
 
 - 
startPlatformpublic IExternalAccess startPlatform() Start the platform.- Returns:
- The platform.
 
 - 
getComoponentMapprotected 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.
 
 - 
doGetpublic void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOExceptionHandle get requests.- Overrides:
- doGetin class- javax.servlet.http.HttpServlet
- Throws:
- javax.servlet.ServletException
- java.io.IOException
 
 - 
doPostpublic void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOExceptionHandle post requests.- Overrides:
- doPostin class- javax.servlet.http.HttpServlet
- Throws:
- javax.servlet.ServletException
- java.io.IOException
 
 - 
destroypublic void destroy() Cleanup- Specified by:
- destroyin interface- javax.servlet.Servlet
- Overrides:
- destroyin class- javax.servlet.GenericServlet
 
 
- 
 
-