|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.cafesip.jiplet.ScopedVariables
org.cafesip.jiplet.JipletContext
public class JipletContext
This class encapsulates the functions of a jiplet context. A context is a SIP application consisting of one or more jiplets, supporting classes and a descriptor (jip.xml). The jiplet container can host multiple contexts. Each context runs in its own "object space" and is completely isolated from other contexts. It is analogous to the web context in the servlet world. A context can be deployed as a single spr file or in exploded format. For more details,
description.
The jiplet context also provides support for application-scope variables.
Application scope variables remain active during the life-time of the
context. Using the methods provided by the ScopedVariable class (that this
class extends), jiplets can create, remove and retrieve application-scope
variables.
| Field Summary | |
|---|---|
static int |
CONTEXT_DEPLOYED
|
static int |
CONTEXT_J2EE
|
static int |
CONTEXT_UNKNOWN
|
javax.management.ObjectName |
MBEAN_NAME
|
| Constructor Summary | |
|---|---|
JipletContext(java.lang.String context,
java.io.File contextRoot,
int type,
java.lang.ClassLoader loader)
Constructor for this class. |
|
| Method Summary | |
|---|---|
protected JipletSession |
addSession(SessionInfo session)
|
protected Jiplet[] |
criteriaMatch(javax.sip.RequestEvent event)
|
void |
destroy()
This method is called by the container when the context is being removed. |
Jiplet |
findJiplet(java.lang.String name)
Find a jiplet belonging to this context given its name. |
protected JipletSession |
findSession(SessionInfo session)
|
java.lang.ClassLoader |
getClassLoader()
This method returns the class loader for this context |
JipApplication |
getConfig()
|
java.lang.String |
getContext()
|
java.io.File |
getContextRoot()
|
java.util.ArrayList |
getContextSelectionCriteria()
|
int |
getContextType()
|
protected java.lang.String |
getContextTypeDescription()
|
java.lang.String |
getDisplayName()
|
org.cafesip.jiplet.jmxbeans.JipletElement |
getJipletProperty(java.lang.String name)
Returns the property of the jiplet specified by the name parameter. |
javax.management.MBeanServer |
getJmxAgent()
|
java.lang.String |
getRealPath(java.lang.String path)
|
protected org.cafesip.jiplet.cma.SecurityConstraintManager |
getSecurityManager()
|
protected void |
init()
|
java.lang.String[] |
listJiplets()
|
protected void |
removeSession(SessionInfo session)
|
boolean |
sendSignal(java.lang.String jiplet,
JipletSignal signal)
This method is used to send a signal to a jiplet. |
java.lang.String |
toString()
|
| Methods inherited from class org.cafesip.jiplet.ScopedVariables |
|---|
getAttribute, getAttributeNames, removeAttribute, setAttribute |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int CONTEXT_UNKNOWN
public static final int CONTEXT_DEPLOYED
public static final int CONTEXT_J2EE
public javax.management.ObjectName MBEAN_NAME
| Constructor Detail |
|---|
public JipletContext(java.lang.String context,
java.io.File contextRoot,
int type,
java.lang.ClassLoader loader)
throws java.lang.Exception
context - name of the contextcontextRoot - root directory for the contexttype - whether it is a J2EE context (deployed by JBOSS) or a context
deployed using the JMX interface. The deployment of J2EE
context is managed by the J2EE server (JBOSS) whereas the
contexts deployed by the JMX interface is fully managed by the
containerloader - classloader for this context.
java.lang.Exception| Method Detail |
|---|
public java.lang.String getRealPath(java.lang.String path)
public java.io.File getContextRoot()
public java.lang.String getContext()
public java.lang.String getDisplayName()
protected void init()
throws java.lang.Exception
java.lang.Exceptionpublic javax.management.MBeanServer getJmxAgent()
public JipApplication getConfig()
protected JipletSession findSession(SessionInfo session)
protected JipletSession addSession(SessionInfo session)
protected void removeSession(SessionInfo session)
public Jiplet findJiplet(java.lang.String name)
name - name of the context
public void destroy()
public int getContextType()
protected java.lang.String getContextTypeDescription()
public java.lang.String[] listJiplets()
listJiplets in interface JipletContextMBeanJipletContextMBean.listJiplets()public org.cafesip.jiplet.jmxbeans.JipletElement getJipletProperty(java.lang.String name)
JipletContextMBean
getJipletProperty in interface JipletContextMBeanname - name of the jiplet
JipletContextMBean.getJipletProperty(java.lang.String)protected Jiplet[] criteriaMatch(javax.sip.RequestEvent event)
public java.util.ArrayList getContextSelectionCriteria()
public java.lang.String toString()
toString in class java.lang.Objectprotected org.cafesip.jiplet.cma.SecurityConstraintManager getSecurityManager()
public java.lang.ClassLoader getClassLoader()
public boolean sendSignal(java.lang.String jiplet,
JipletSignal signal)
jiplet - name of the jipletsignal - event information
JipletSignal
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||