|
Oracle Communications Converged Application Server Java API Reference 5.1 E36938-01 |
|||||||||
| 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.PersistenceTypeUsed by setPersist( com.bea.wcp.sip.WlssSipApplicationSession.PersistenceType, boolean). |
| Nested classes/interfaces inherited from interface javax.servlet.sip.SipApplicationSession |
|---|
javax.servlet.sip.SipApplicationSession.Protocol |
| Method Summary | |
|---|---|
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 |
|---|
Object doAction(WlssAction action)
throws 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 applicationException - - 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()
|
Oracle Communications Converged Application Server Java API Reference 5.1 E36938-01 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright © 2012 Oracle Corporation. All Rights Reserved.