|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jdiameter.client.impl.parser.MessageImpl
public class MessageImpl
| Nested Class Summary | |
|---|---|
protected static class |
MessageImpl.TimerTask
|
| Field Summary |
|---|
| Fields inherited from interface org.jdiameter.client.api.IMessage |
|---|
STATE_ANSWERED, STATE_BUFFERED, STATE_NOT_SENT, STATE_SENT |
| Fields inherited from interface org.jdiameter.api.Message |
|---|
ABORT_SESSION_ANSWER, ABORT_SESSION_REQUEST, ACCOUNTING_ANSWER, ACCOUNTING_REQUEST, CAPABILITIES_EXCHANGE_ANSWER, CAPABILITIES_EXCHANGE_REQUEST, DEVICE_WATCHDOG_ANSWER, DEVICE_WATCHDOG_REQUEST, DISCONNECT_PEER_ANSWER, DISCONNECT_PEER_REQUEST, RE_AUTH_ANSWER, RE_AUTH_REQUEST, SESSION_TERMINATION_ANSWER, SESSION_TERMINATION_REQUEST |
| Method Summary | ||
|---|---|---|
void |
clearTimer()
Cancel timer |
|
java.lang.Object |
clone()
Create clone object |
|
protected void |
copyHeader(MessageImpl request)
|
|
org.jdiameter.api.Answer |
createAnswer(long resultCode)
|
|
org.jdiameter.api.Answer |
createAnswer(long vendorId,
long experementalResultCode)
|
|
void |
createTimer(java.util.concurrent.ScheduledExecutorService scheduledFacility,
long timeOut,
java.util.concurrent.TimeUnit timeUnit)
Create timer for request timout procedure |
|
boolean |
equals(java.lang.Object o)
|
|
long |
getApplicationId()
|
|
java.util.Set<org.jdiameter.api.ApplicationId> |
getApplicationIdAvps()
|
|
org.jdiameter.api.AvpSet |
getAvps()
|
|
int |
getCommandCode()
|
|
java.lang.String |
getDuplicationKey()
Return duplication key of message |
|
java.lang.String |
getDuplicationKey(java.lang.String host,
long endToEndId)
Generate duplication key |
|
long |
getEndToEndIdentifier()
|
|
IEventListener |
getEventListener()
Return event listener |
|
int |
getFlags()
Return flags as inteher |
|
long |
getHeaderApplicationId()
Return header applicationId |
|
long |
getHopByHopIdentifier()
|
|
IPeer |
getPeer()
Return attached peer |
|
org.jdiameter.api.Avp |
getResultCode()
|
|
java.lang.String |
getSessionId()
|
|
org.jdiameter.api.ApplicationId |
getSingleApplicationId()
Return application id |
|
org.jdiameter.api.ApplicationId |
getSingleApplicationId(long applicationId)
Return application id |
|
int |
getState()
Return state of message |
|
byte |
getVersion()
|
|
int |
hashCode()
|
|
boolean |
isError()
|
|
boolean |
isNetworkRequest()
|
|
boolean |
isProxiable()
|
|
boolean |
isRequest()
|
|
boolean |
isReTransmitted()
|
|
boolean |
isTimeOut()
Check timeout |
|
boolean |
isWrapperFor(java.lang.Class<?> aClass)
|
|
void |
runTimer()
Execute timer task |
|
void |
setEndToEndIdentifier(long endByEndId)
Set end by end id |
|
void |
setError(boolean b)
|
|
void |
setHeaderApplicationId(long applicationId)
Set header message application id |
|
void |
setHopByHopIdentifier(long hopByHopId)
Set hop by hop id |
|
void |
setListener(IEventListener listener)
Set event listener |
|
void |
setNetworkRequest(boolean isNetworkRequest)
Set network request flag |
|
void |
setPeer(IPeer peer)
Attach message to peer |
|
void |
setProxiable(boolean b)
|
|
void |
setRequest(boolean b)
|
|
void |
setReTransmitted(boolean b)
|
|
void |
setState(int newState)
Set new state |
|
java.lang.String |
toString()
|
|
|
unwrap(java.lang.Class<T> aClass)
|
|
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public byte getVersion()
getVersion in interface org.jdiameter.api.Messagepublic boolean isRequest()
isRequest in interface org.jdiameter.api.Messagepublic void setRequest(boolean b)
setRequest in interface org.jdiameter.api.Messagepublic boolean isProxiable()
isProxiable in interface org.jdiameter.api.Messagepublic void setProxiable(boolean b)
setProxiable in interface org.jdiameter.api.Messagepublic boolean isError()
isError in interface org.jdiameter.api.Messagepublic void setError(boolean b)
setError in interface org.jdiameter.api.Messagepublic boolean isReTransmitted()
isReTransmitted in interface org.jdiameter.api.Messagepublic void setReTransmitted(boolean b)
setReTransmitted in interface org.jdiameter.api.Messagepublic int getCommandCode()
getCommandCode in interface org.jdiameter.api.Messagepublic java.lang.String getSessionId()
getSessionId in interface org.jdiameter.api.Messagepublic org.jdiameter.api.Answer createAnswer(long resultCode)
createAnswer in interface org.jdiameter.api.Request
public org.jdiameter.api.Answer createAnswer(long vendorId,
long experementalResultCode)
createAnswer in interface org.jdiameter.api.Requestpublic long getApplicationId()
getApplicationId in interface org.jdiameter.api.Messagepublic org.jdiameter.api.ApplicationId getSingleApplicationId()
IMessage
getSingleApplicationId in interface IMessagepublic org.jdiameter.api.ApplicationId getSingleApplicationId(long applicationId)
IMessage
getSingleApplicationId in interface IMessagepublic java.util.Set<org.jdiameter.api.ApplicationId> getApplicationIdAvps()
getApplicationIdAvps in interface org.jdiameter.api.Messagepublic long getHopByHopIdentifier()
getHopByHopIdentifier in interface org.jdiameter.api.Messagepublic long getEndToEndIdentifier()
getEndToEndIdentifier in interface org.jdiameter.api.Messagepublic org.jdiameter.api.AvpSet getAvps()
getAvps in interface org.jdiameter.api.Messageprotected void copyHeader(MessageImpl request)
public org.jdiameter.api.Avp getResultCode()
getResultCode in interface org.jdiameter.api.Answerpublic void setNetworkRequest(boolean isNetworkRequest)
IRequest
setNetworkRequest in interface IRequestisNetworkRequest - true if this request is neteorkpublic boolean isNetworkRequest()
isNetworkRequest in interface org.jdiameter.api.Request
public boolean isWrapperFor(java.lang.Class<?> aClass)
throws org.jdiameter.api.InternalException
isWrapperFor in interface org.jdiameter.api.Wrapperorg.jdiameter.api.InternalException
public <T> T unwrap(java.lang.Class<T> aClass)
throws org.jdiameter.api.InternalException
unwrap in interface org.jdiameter.api.Wrapperorg.jdiameter.api.InternalExceptionpublic void setHopByHopIdentifier(long hopByHopId)
IMessage
setHopByHopIdentifier in interface IMessagehopByHopId - hopByHopId valuepublic void setEndToEndIdentifier(long endByEndId)
IMessage
setEndToEndIdentifier in interface IMessageendByEndId - endByEndId valuepublic IPeer getPeer()
IMessage
getPeer in interface IMessagepublic void setPeer(IPeer peer)
IMessage
setPeer in interface IMessagepeer - attached peerpublic int getState()
IMessage
getState in interface IMessagepublic long getHeaderApplicationId()
IMessage
getHeaderApplicationId in interface IMessagepublic void setHeaderApplicationId(long applicationId)
IMessage
setHeaderApplicationId in interface IMessageapplicationId - header message application idpublic int getFlags()
IMessage
getFlags in interface IMessagepublic void setState(int newState)
IMessage
setState in interface IMessagenewState - new state value
public void createTimer(java.util.concurrent.ScheduledExecutorService scheduledFacility,
long timeOut,
java.util.concurrent.TimeUnit timeUnit)
IMessage
createTimer in interface IMessagescheduledFacility - timer facilitytimeOut - value of timeouttimeUnit - time unitpublic void runTimer()
IMessage
runTimer in interface IMessagepublic boolean isTimeOut()
IMessage
isTimeOut in interface IMessagepublic void setListener(IEventListener listener)
IMessage
setListener in interface IMessagelistener - event listenerpublic IEventListener getEventListener()
IMessage
getEventListener in interface IMessagepublic void clearTimer()
IMessage
clearTimer in interface IMessagepublic java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String getDuplicationKey()
IMessage
getDuplicationKey in interface IMessage
public java.lang.String getDuplicationKey(java.lang.String host,
long endToEndId)
IMessage
getDuplicationKey in interface IMessagehost - origination hostendToEndId - end to end id
public java.lang.Object clone()
IMessage
clone in interface IMessageclone in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||