Package org.activecomponents.webservice
Class SWebSocket
- java.lang.Object
- 
- org.activecomponents.webservice.SWebSocket
 
- 
 public class SWebSocket extends java.lang.ObjectStatic helper methods for Jadex websocket integration.
- 
- 
Field SummaryFields Modifier and Type Field Description static java.lang.StringATTR_PLATFORMAttribute name for platform in context.
 - 
Constructor SummaryConstructors Constructor Description SWebSocket()
 - 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static IFuture<java.lang.Void>cleanupContext(javax.servlet.ServletContext context)Cleanup a context.static IFuture<IComponentIdentifier>createAgent(javax.servlet.ServletContext context, java.lang.String model)Create a agent.static IFuture<IExternalAccess>getPlatform(javax.servlet.ServletContext context)Get or create a Jadex platform for the given context.static IFuture<java.lang.Void>initContext(javax.servlet.ServletContext context)Initialize a context.
 
- 
- 
- 
Field Detail- 
ATTR_PLATFORMpublic static final java.lang.String ATTR_PLATFORM Attribute name for platform in context.- See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
initContextpublic static IFuture<java.lang.Void> initContext(javax.servlet.ServletContext context) Initialize a context. Should be called only once per context at startup. Creates platform and initial agents, if necessary.- Parameters:
- context- The servlet context.
 
 - 
cleanupContextpublic static IFuture<java.lang.Void> cleanupContext(javax.servlet.ServletContext context) Cleanup a context. Should be called only once per context at shutdown. Removes platform with all agents, if necessary.- Parameters:
- context- The servlet context.
 
 - 
getPlatformpublic static IFuture<IExternalAccess> getPlatform(javax.servlet.ServletContext context) Get or create a Jadex platform for the given context.- Parameters:
- context- The servlet context.
 
 - 
createAgentpublic static IFuture<IComponentIdentifier> createAgent(javax.servlet.ServletContext context, java.lang.String model) Create a agent.- Parameters:
- context- The servlet context.
- model- The agent model.
- Returns:
- Future for the component identifier of the created agent.
 
 
- 
 
-