|
Oracle Fusion Middleware Oracle WebLogic SIP Server API Reference 11g Release 1 (10.3.4) Part Number E17873-02 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface WlssSipApplicationSession
This interface is an extension of the standard SipApplicationSession
interface.
SipApplicationSession,
WlssAction| Nested Class Summary | |
|---|---|
static class |
WlssSipApplicationSession.PersistenceType
Used by setPersist(
com.bea.wcp.sip.WlssSipApplicationSession.PersistenceType, boolean). |
| Nested classes/interfaces inherited from interface javax.servlet.sip.SipApplicationSession |
|---|
SipApplicationSession.Protocol |
| Method Summary | |
|---|---|
java.lang.Object |
doAction(WlssAction action)
This methods executes WlssTask in a transactional manner. |
void |
doAsynchronousAction(WlssAsynchronousAction asyncWork)
This method allows an application to access a SipApplicationSession in an asynchronous manner. |
byte |
getGeoSiteId()
The site identifier. |
void |
setPersist(WlssSipApplicationSession.PersistenceType type,
boolean value)
This method can be used to override the default call-state persistence characteristics. |
| Methods inherited from interface javax.servlet.sip.SipApplicationSession |
|---|
encodeURI, encodeURL, getApplicationName, getAttribute, getAttributeNames, getCreationTime, getExpirationTime, getId, getInvalidateWhenReady, getLastAccessedTime, getSession, getSessions, getSessions, getSipSession, getTimer, getTimers, invalidate, isReadyToInvalidate, isValid, removeAttribute, setAttribute, setExpires, setInvalidateWhenReady |
| Method Detail |
|---|
java.lang.Object doAction(WlssAction action)
throws java.lang.Exception
Example usage:
SipApplicationSession appSession = ...;
WlssSipApplicationSession wlssAppSession = (WlssSipApplicationSession) appSession;
wlssAppSession.doAction(new WlssAction() {
public Object run() throws Exception {
// add your business logic here
appSession.setAttribute("counter", latestCounterValue);
sipSession.setAttribute("currentState", latestAppState);
// The container will make sure that the run method will be invoked
// the with appSession locked
return null;
}
});
action - WlssAction which is passed by the application
java.lang.Exception - - propagates the Exception thrown by the run methodvoid doAsynchronousAction(WlssAsynchronousAction asyncWork)
Example Usage:
SipApplicationSession appSession = ...;
appSession.doAsynchronousAction(new WlssAsynchronousAction() {
void run(SipApplicationSession appSession) {
// add your business logic here
int counter = appSession.getAttribute("counter");
++ counter;
appSession.setAttribute("counter", counter);
}
});
asyncWork - the work to be done on this SipApplicationSession. The
run method of this object contains the work (business logic) to be
performed.WlssAsynchronousAction
void setPersist(WlssSipApplicationSession.PersistenceType type,
boolean value)
This method can be used to override the default call-state persistence characteristics.
type - DATABASE denotes that the state should be saved to database by the datatier to save RAM space.
GEO_REDUNDANCY indicates that the state should be replicated to the remote site.value - whether or not to enable the action.byte getGeoSiteId()
|
Copyright 1996, 2010, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Oracle Fusion Middleware Oracle WebLogic SIP Server API Reference 11g Release 1 (10.3.4) Part Number E17873-02 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||