org.jdiameter.client.impl
Class SessionImpl
java.lang.Object
org.jdiameter.client.impl.BaseSessionImpl
org.jdiameter.client.impl.SessionImpl
- All Implemented Interfaces:
- java.io.Serializable, org.jdiameter.api.BaseSession, org.jdiameter.api.Session, org.jdiameter.api.Wrapper, ISession
public class SessionImpl
- extends BaseSessionImpl
- implements ISession
- See Also:
- Serialized Form
|
Method Summary |
org.jdiameter.api.Request |
createRequest(int commandCode,
org.jdiameter.api.ApplicationId appId,
java.lang.String destRealm)
|
org.jdiameter.api.Request |
createRequest(int commandCode,
org.jdiameter.api.ApplicationId appId,
java.lang.String destRealm,
java.lang.String destHost)
|
org.jdiameter.api.Request |
createRequest(org.jdiameter.api.Request prevRequest)
|
org.jdiameter.api.NetworkReqListener |
getReqListener()
|
java.lang.String |
getSessionId()
|
boolean |
isWrapperFor(java.lang.Class<?> iface)
|
void |
release()
|
void |
send(org.jdiameter.api.Message message,
org.jdiameter.api.EventListener<org.jdiameter.api.Request,org.jdiameter.api.Answer> listener)
|
void |
send(org.jdiameter.api.Message message,
org.jdiameter.api.EventListener<org.jdiameter.api.Request,org.jdiameter.api.Answer> listener,
long timeout,
java.util.concurrent.TimeUnit timeUnit)
|
void |
setRequestListener(org.jdiameter.api.NetworkReqListener listener)
|
protected void |
setSessionId()
|
|
unwrap(java.lang.Class<T> iface)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.jdiameter.api.BaseSession |
getCreationTime, getLastAccessedTime, isValid, send, send |
uid
protected static UIDGenerator uid
sessionId
protected java.lang.String sessionId
getSessionId
public java.lang.String getSessionId()
- Specified by:
getSessionId in interface org.jdiameter.api.Session
send
public void send(org.jdiameter.api.Message message,
org.jdiameter.api.EventListener<org.jdiameter.api.Request,org.jdiameter.api.Answer> listener)
throws org.jdiameter.api.InternalException,
org.jdiameter.api.IllegalDiameterStateException,
org.jdiameter.api.RouteException,
org.jdiameter.api.OverloadException
- Specified by:
send in interface org.jdiameter.api.Session
- Throws:
org.jdiameter.api.InternalException
org.jdiameter.api.IllegalDiameterStateException
org.jdiameter.api.RouteException
org.jdiameter.api.OverloadException
send
public void send(org.jdiameter.api.Message message,
org.jdiameter.api.EventListener<org.jdiameter.api.Request,org.jdiameter.api.Answer> listener,
long timeout,
java.util.concurrent.TimeUnit timeUnit)
throws org.jdiameter.api.InternalException,
org.jdiameter.api.IllegalDiameterStateException,
org.jdiameter.api.RouteException,
org.jdiameter.api.OverloadException
- Specified by:
send in interface org.jdiameter.api.Session
- Throws:
org.jdiameter.api.InternalException
org.jdiameter.api.IllegalDiameterStateException
org.jdiameter.api.RouteException
org.jdiameter.api.OverloadException
setRequestListener
public void setRequestListener(org.jdiameter.api.NetworkReqListener listener)
- Specified by:
setRequestListener in interface org.jdiameter.api.Session
getReqListener
public org.jdiameter.api.NetworkReqListener getReqListener()
- Specified by:
getReqListener in interface ISession
createRequest
public org.jdiameter.api.Request createRequest(int commandCode,
org.jdiameter.api.ApplicationId appId,
java.lang.String destRealm)
- Specified by:
createRequest in interface org.jdiameter.api.Session
createRequest
public org.jdiameter.api.Request createRequest(int commandCode,
org.jdiameter.api.ApplicationId appId,
java.lang.String destRealm,
java.lang.String destHost)
- Specified by:
createRequest in interface org.jdiameter.api.Session
createRequest
public org.jdiameter.api.Request createRequest(org.jdiameter.api.Request prevRequest)
- Specified by:
createRequest in interface org.jdiameter.api.Session
release
public void release()
- Specified by:
release in interface org.jdiameter.api.BaseSession
setSessionId
protected void setSessionId()
isWrapperFor
public boolean isWrapperFor(java.lang.Class<?> iface)
throws org.jdiameter.api.InternalException
- Specified by:
isWrapperFor in interface org.jdiameter.api.Wrapper
- Throws:
org.jdiameter.api.InternalException
unwrap
public <T> T unwrap(java.lang.Class<T> iface)
throws org.jdiameter.api.InternalException
- Specified by:
unwrap in interface org.jdiameter.api.Wrapper
- Throws:
org.jdiameter.api.InternalException
Copyright © 2008. All Rights Reserved.