|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mobicents.servlet.sip.message.MobicentsSipSessionFacade
public class MobicentsSipSessionFacade
The purpose of this class is to be a facade to the real sip session as well as a serializable session class that can be put as a session attribute in other sessions or even its own session. Basically instead of replicating the whole attribute map, we will replicate the id, then on the remote side we will read the ID and look it up in the remote session manager.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface javax.servlet.sip.SipSession |
|---|
SipSession.State |
| Constructor Summary | |
|---|---|
MobicentsSipSessionFacade(MobicentsSipSession sipSession)
|
|
| Method Summary | |
|---|---|
void |
access()
|
void |
addDerivedSipSessions(MobicentsSipSession derivedSession)
Add the derived sip session it will be identified by the To tag from its key |
void |
addOngoingTransaction(javax.sip.Transaction transaction)
|
void |
addSubscription(SipServletMessageImpl sipServletMessage)
|
SipServletRequest |
createRequest(java.lang.String arg0)
|
boolean |
equals(java.lang.Object obj)
|
MobicentsSipSession |
findDerivedSipSession(java.lang.String toTag)
Find the derived sip session identified by its to tag |
SipApplicationSession |
getApplicationSession()
|
java.lang.Object |
getAttribute(java.lang.String arg0)
|
java.util.Enumeration<java.lang.String> |
getAttributeNames()
|
B2buaHelperImpl |
getB2buaHelper()
|
java.lang.String |
getCallId()
|
long |
getCreationTime()
|
long |
getCseq()
|
java.util.Iterator<MobicentsSipSession> |
getDerivedSipSessions()
|
java.lang.String |
getHandler()
|
java.lang.String |
getId()
|
boolean |
getInvalidateWhenReady()
|
SipSessionKey |
getKey()
get the internal Mobicents Sip Session Key |
long |
getLastAccessedTime()
|
Address |
getLocalParty()
|
SipApplicationRouterInfo |
getNextSipApplicationRouterInfo()
|
java.util.Set<javax.sip.Transaction> |
getOngoingTransactions()
|
SipURI |
getOutboundInterface()
|
ProxyImpl |
getProxy()
Retieves the proxy of the sip session if any |
SipApplicationRoutingRegion |
getRegion()
|
SipApplicationRoutingRegion |
getRegionInternal()
|
Address |
getRemoteParty()
|
java.util.concurrent.Semaphore |
getSemaphore()
|
javax.servlet.ServletContext |
getServletContext()
|
MobicentsSipSessionFacade |
getSession()
|
javax.sip.Dialog |
getSessionCreatingDialog()
|
javax.sip.Transaction |
getSessionCreatingTransaction()
|
MobicentsSipApplicationSession |
getSipApplicationSession()
|
java.util.Map<java.lang.String,java.lang.Object> |
getSipSessionAttributeMap()
|
URI |
getSipSubscriberURI()
|
SipSession.State |
getState()
|
java.io.Serializable |
getStateInfo()
|
URI |
getSubscriberURI()
|
java.security.Principal |
getUserPrincipal()
|
int |
hashCode()
|
void |
invalidate()
|
boolean |
isAckReceived()
|
boolean |
isReadyToInvalidate()
|
boolean |
isValid()
|
boolean |
isValidInternal()
|
void |
onReadyToInvalidate()
|
void |
onTerminatedState()
|
void |
removeAttribute(java.lang.String arg0)
|
MobicentsSipSession |
removeDerivedSipSession(java.lang.String toTag)
Removes the derived sip session identified by the To tag in parameter |
void |
removeOngoingTransaction(javax.sip.Transaction transaction)
|
void |
removeSubscription(SipServletMessageImpl sipServletMessage)
|
void |
setAckReceived(boolean ackReceived)
|
void |
setAttribute(java.lang.String arg0,
java.lang.Object arg1)
|
void |
setB2buaHelper(B2buaHelperImpl helperImpl)
|
void |
setCseq(long cseq)
|
void |
setHandler(java.lang.String arg0)
|
void |
setInvalidateWhenReady(boolean arg0)
|
void |
setLocalParty(Address addressImpl)
|
void |
setNextSipApplicationRouterInfo(SipApplicationRouterInfo routerInfo)
|
void |
setOutboundInterface(java.net.InetAddress arg0)
|
void |
setOutboundInterface(java.net.InetSocketAddress arg0)
|
void |
setParentSession(MobicentsSipSession mobicentsSipSession)
|
void |
setProxy(ProxyImpl proxy)
Set the proxy of the sip session |
void |
setRemoteParty(Address addressImpl)
|
void |
setRoutingRegion(SipApplicationRoutingRegion routingRegion)
|
void |
setSessionCreatingDialog(javax.sip.Dialog dialog)
|
void |
setSessionCreatingTransaction(javax.sip.Transaction transaction)
|
void |
setSipSessionAttributeMap(java.util.Map<java.lang.String,java.lang.Object> sipSessionAttributeMap)
|
void |
setSipSubscriberURI(URI subscriberURI)
|
void |
setState(SipSession.State state)
|
void |
setStateInfo(java.io.Serializable stateInfo)
|
void |
setUserPrincipal(java.security.Principal principal)
|
java.lang.String |
toString()
|
void |
updateStateOnResponse(SipServletResponseImpl sipServletResponseImpl,
boolean receive)
|
void |
updateStateOnSubsequentRequest(SipServletRequestImpl sipServletRequestImpl,
boolean receive)
|
boolean |
validateCSeq(SipServletRequestImpl request)
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MobicentsSipSessionFacade(MobicentsSipSession sipSession)
| Method Detail |
|---|
public SipServletRequest createRequest(java.lang.String arg0)
createRequest in interface SipSessionpublic SipApplicationSession getApplicationSession()
getApplicationSession in interface SipSessionpublic java.lang.Object getAttribute(java.lang.String arg0)
getAttribute in interface SipSessionpublic java.util.Enumeration<java.lang.String> getAttributeNames()
getAttributeNames in interface SipSessionpublic java.lang.String getCallId()
getCallId in interface SipSessionpublic long getCreationTime()
getCreationTime in interface SipSessionpublic java.lang.String getId()
getId in interface SipSessionpublic boolean getInvalidateWhenReady()
getInvalidateWhenReady in interface SipSessionpublic long getLastAccessedTime()
getLastAccessedTime in interface SipSessionpublic Address getLocalParty()
getLocalParty in interface SipSessionpublic SipApplicationRoutingRegion getRegion()
getRegion in interface SipSessionpublic Address getRemoteParty()
getRemoteParty in interface SipSessionpublic javax.servlet.ServletContext getServletContext()
getServletContext in interface SipSessionpublic SipSession.State getState()
getState in interface SipSessionpublic URI getSubscriberURI()
getSubscriberURI in interface SipSessionpublic void invalidate()
invalidate in interface SipSessionpublic boolean isReadyToInvalidate()
isReadyToInvalidate in interface SipSessionpublic boolean isValid()
isValid in interface SipSessionpublic boolean isValidInternal()
isValidInternal in interface MobicentsSipSessionpublic void removeAttribute(java.lang.String arg0)
removeAttribute in interface SipSession
public void setAttribute(java.lang.String arg0,
java.lang.Object arg1)
setAttribute in interface SipSession
public void setHandler(java.lang.String arg0)
throws javax.servlet.ServletException
setHandler in interface SipSessionjavax.servlet.ServletExceptionpublic void setInvalidateWhenReady(boolean arg0)
setInvalidateWhenReady in interface SipSessionpublic void setOutboundInterface(java.net.InetAddress arg0)
setOutboundInterface in interface SipSessionpublic void setOutboundInterface(java.net.InetSocketAddress arg0)
setOutboundInterface in interface SipSessionpublic void access()
access in interface MobicentsSipSessionpublic void addDerivedSipSessions(MobicentsSipSession derivedSession)
MobicentsSipSession
addDerivedSipSessions in interface MobicentsSipSessionderivedSession - the derived session to addpublic void addOngoingTransaction(javax.sip.Transaction transaction)
addOngoingTransaction in interface MobicentsSipSession
public void addSubscription(SipServletMessageImpl sipServletMessage)
throws javax.sip.SipException
addSubscription in interface MobicentsSipSessionjavax.sip.SipExceptionpublic MobicentsSipSession findDerivedSipSession(java.lang.String toTag)
MobicentsSipSession
findDerivedSipSession in interface MobicentsSipSessiontoTag - the to Tag identifying the sip session to remove
public B2buaHelperImpl getB2buaHelper()
getB2buaHelper in interface MobicentsSipSessionpublic java.util.Iterator<MobicentsSipSession> getDerivedSipSessions()
getDerivedSipSessions in interface MobicentsSipSessionpublic java.lang.String getHandler()
getHandler in interface MobicentsSipSessionpublic SipSessionKey getKey()
MobicentsSipSession
getKey in interface MobicentsSipSessionpublic java.util.Set<javax.sip.Transaction> getOngoingTransactions()
getOngoingTransactions in interface MobicentsSipSessionpublic SipURI getOutboundInterface()
getOutboundInterface in interface MobicentsSipSessionpublic ProxyImpl getProxy()
MobicentsSipSession
getProxy in interface MobicentsSipSessionpublic SipApplicationRoutingRegion getRegionInternal()
getRegionInternal in interface MobicentsSipSessionpublic java.util.concurrent.Semaphore getSemaphore()
getSemaphore in interface MobicentsSipSessionpublic javax.sip.Dialog getSessionCreatingDialog()
getSessionCreatingDialog in interface MobicentsSipSessionpublic javax.sip.Transaction getSessionCreatingTransaction()
getSessionCreatingTransaction in interface MobicentsSipSessionpublic MobicentsSipApplicationSession getSipApplicationSession()
getSipApplicationSession in interface MobicentsSipSessionpublic java.util.Map<java.lang.String,java.lang.Object> getSipSessionAttributeMap()
getSipSessionAttributeMap in interface MobicentsSipSessionpublic URI getSipSubscriberURI()
getSipSubscriberURI in interface MobicentsSipSessionpublic java.io.Serializable getStateInfo()
getStateInfo in interface MobicentsSipSessionpublic java.security.Principal getUserPrincipal()
getUserPrincipal in interface MobicentsSipSessionpublic void onReadyToInvalidate()
onReadyToInvalidate in interface MobicentsSipSessionpublic void onTerminatedState()
onTerminatedState in interface MobicentsSipSessionpublic MobicentsSipSession removeDerivedSipSession(java.lang.String toTag)
MobicentsSipSession
removeDerivedSipSession in interface MobicentsSipSessiontoTag - the to Tag identifying the sip session to remove
public void removeOngoingTransaction(javax.sip.Transaction transaction)
removeOngoingTransaction in interface MobicentsSipSessionpublic void removeSubscription(SipServletMessageImpl sipServletMessage)
removeSubscription in interface MobicentsSipSessionpublic void setB2buaHelper(B2buaHelperImpl helperImpl)
setB2buaHelper in interface MobicentsSipSessionpublic void setLocalParty(Address addressImpl)
setLocalParty in interface MobicentsSipSessionpublic void setParentSession(MobicentsSipSession mobicentsSipSession)
setParentSession in interface MobicentsSipSessionpublic void setProxy(ProxyImpl proxy)
MobicentsSipSession
setProxy in interface MobicentsSipSessionpublic void setRemoteParty(Address addressImpl)
setRemoteParty in interface MobicentsSipSessionpublic void setRoutingRegion(SipApplicationRoutingRegion routingRegion)
setRoutingRegion in interface MobicentsSipSessionpublic void setSessionCreatingDialog(javax.sip.Dialog dialog)
setSessionCreatingDialog in interface MobicentsSipSessionpublic void setSessionCreatingTransaction(javax.sip.Transaction transaction)
setSessionCreatingTransaction in interface MobicentsSipSessionpublic void setSipSessionAttributeMap(java.util.Map<java.lang.String,java.lang.Object> sipSessionAttributeMap)
setSipSessionAttributeMap in interface MobicentsSipSessionpublic void setSipSubscriberURI(URI subscriberURI)
setSipSubscriberURI in interface MobicentsSipSessionpublic void setState(SipSession.State state)
setState in interface MobicentsSipSessionpublic void setStateInfo(java.io.Serializable stateInfo)
setStateInfo in interface MobicentsSipSessionpublic void setUserPrincipal(java.security.Principal principal)
setUserPrincipal in interface MobicentsSipSession
public void updateStateOnResponse(SipServletResponseImpl sipServletResponseImpl,
boolean receive)
updateStateOnResponse in interface MobicentsSipSession
public void updateStateOnSubsequentRequest(SipServletRequestImpl sipServletRequestImpl,
boolean receive)
updateStateOnSubsequentRequest in interface MobicentsSipSessionpublic MobicentsSipSessionFacade getSession()
getSession in interface MobicentsSipSessionpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic SipApplicationRouterInfo getNextSipApplicationRouterInfo()
getNextSipApplicationRouterInfo in interface MobicentsSipSessionpublic void setNextSipApplicationRouterInfo(SipApplicationRouterInfo routerInfo)
setNextSipApplicationRouterInfo in interface MobicentsSipSessionpublic void setAckReceived(boolean ackReceived)
setAckReceived in interface MobicentsSipSessionpublic boolean isAckReceived()
isAckReceived in interface MobicentsSipSessionpublic void setCseq(long cseq)
setCseq in interface MobicentsSipSessionpublic long getCseq()
getCseq in interface MobicentsSipSessionpublic boolean validateCSeq(SipServletRequestImpl request)
validateCSeq in interface MobicentsSipSession
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||