|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mobicents.slee.resource.diameter.base.events.DiameterMessageImpl
public abstract class DiameterMessageImpl
Super class for all diameter messages
Super project: mobicents
13:25:46 2008-05-08
| Field Summary | |
|---|---|
protected boolean |
destinationHostMandatory
|
protected boolean |
destinationRealmMandatory
|
protected org.apache.log4j.Logger |
log
|
protected org.jdiameter.api.Message |
message
|
protected boolean |
originHostMandatory
|
protected boolean |
originRealmMandatory
|
| Constructor Summary | |
|---|---|
DiameterMessageImpl(org.jdiameter.api.Message message)
|
|
| Method Summary | |
|---|---|
void |
addAvp(DiameterAvp avp)
|
protected void |
addAvpAsByteArray(int code,
byte[] value,
boolean mandatory)
|
java.lang.Object |
clone()
Creates and returns a deep copy of this Diameter message. |
long |
getAcctApplicationId()
|
protected DiameterIdentityAvp[] |
getAllAvpAsIdentity(int code)
|
long |
getAuthApplicationId()
|
protected AddressAvp[] |
getAvpAsAddress(int code)
|
protected java.util.Date |
getAvpAsDate(int code)
|
protected DiameterIdentityAvp |
getAvpAsIdentity(int code)
|
protected int |
getAvpAsInt32(int code)
|
protected long |
getAvpAsUInt32(int code)
|
protected java.lang.String |
getAvpAsUtf8(int code)
|
DiameterAvp[] |
getAvps()
Return the AVPs contained in this message, as an array of DiameterAvp objects. |
protected int[] |
getAvpsAsInt32(int code)
|
protected long[] |
getAvpsAsUInt32(int code)
|
DiameterCommand |
getCommand()
Return the DiameterCommand contained in the header of this message. |
DiameterIdentityAvp |
getDestinationHost()
Returns the value of the Destination-Host AVP, of type DiameterIdentity. |
DiameterIdentityAvp |
getDestinationRealm()
Returns the value of the Destination-Realm AVP, of type DiameterIdentity. |
java.lang.String |
getErrorMessage()
|
DiameterIdentityAvp |
getErrorReportingHost()
|
java.util.Date |
getEventTimestamp()
|
DiameterAvp[] |
getExtensionAvps()
Returns the set of extension AVPs. |
FailedAvp[] |
getFailedAvps()
|
org.jdiameter.api.Message |
getGenericData()
|
DiameterHeader |
getHeader()
Return the org.mobicents.slee.resource.diameter.base.DiameterHeader in this message, if it exists. |
abstract java.lang.String |
getLongName()
This method returns long name of this message type - Like Device-Watchdog-Request |
DiameterIdentityAvp |
getOriginHost()
Returns the value of the Origin-Host AVP, of type DiameterIdentity. |
DiameterIdentityAvp |
getOriginRealm()
Returns the value of the Origin-Realm AVP, of type DiameterIdentity. |
long |
getOriginStateId()
|
ProxyInfoAvp[] |
getProxyInfos()
|
DiameterURIAvp[] |
getRedirectHosts()
|
RedirectHostUsageType |
getRedirectHostUsage()
|
long |
getRedirectMaxCacheTime()
|
long |
getResultCode()
|
DiameterIdentityAvp[] |
getRouteRecords()
|
java.lang.String |
getSessionId()
Returns the value of the Session-Id AVP, of type UTF8String. |
abstract java.lang.String |
getShortName()
This method return short name of this message type - for instance DWR,DWA for DeviceWatchdog message |
java.lang.String |
getUserName()
|
VendorSpecificApplicationIdAvp |
getVendorSpecificApplicationId()
|
boolean |
hasAcctApplicationId()
|
boolean |
hasAuthApplicationId()
|
boolean |
hasDestinationHost()
|
boolean |
hasDestinationRealm()
|
boolean |
hasErrorMessage()
|
boolean |
hasErrorReportingHost()
|
boolean |
hasEventTimestamp()
|
boolean |
hasOriginHost()
Returns true if the Origin-Host AVP is present in the message. |
boolean |
hasOriginRealm()
Returns true if the Origin-Realm AVP is present in the message. |
boolean |
hasOriginStateId()
|
boolean |
hasRedirectHostUsage()
|
boolean |
hasRedirectMaxCacheTime()
|
boolean |
hasResultCode()
|
boolean |
hasSessionId()
Returns true if the Session-Id AVP is present in the message. |
boolean |
hasUserName()
|
boolean |
hasVendorSpecificApplicationId()
|
void |
setAcctApplicationId(long acctApplicationId)
|
void |
setAuthApplicationId(long authApplicationId)
|
void |
setAvpAsAddress(int code,
AddressAvp[] avps,
boolean mandatory,
boolean... remove)
|
protected void |
setAvpAsDate(int code,
java.util.Date value,
boolean mandatory,
boolean... remove)
|
protected org.jdiameter.api.AvpSet |
setAvpAsGroup(int code,
DiameterAvp[] childs,
boolean mandatory,
boolean... remove)
|
protected void |
setAvpAsIdentity(int code,
java.lang.String value,
boolean octet,
boolean mandatory,
boolean... remove)
|
protected void |
setAvpAsInt32(int code,
int value,
boolean mandatory,
boolean... remove)
|
protected void |
setAvpAsUInt32(int code,
long value,
boolean mandatory,
boolean... remove)
|
protected void |
setAvpAsUtf8(int code,
java.lang.String value,
boolean mandatory,
boolean... remove)
|
protected void |
setAvpsAsUInt32(int code,
long[] values,
boolean mandatory,
boolean... remove)
|
void |
setDestinationHost(DiameterIdentityAvp destinationHost)
Sets the value of the Destination-Host AVP, of type DiameterIdentity. |
void |
setDestinationRealm(DiameterIdentityAvp destinationRealm)
Sets the value of the Destination-Realm AVP, of type DiameterIdentity. |
void |
setErrorMessage(java.lang.String errorMessage)
|
void |
setErrorReportingHost(DiameterIdentityAvp errorReportingHost)
|
void |
setEventTimestamp(java.util.Date eventTimestamp)
|
void |
setExtensionAvps(DiameterAvp[] avps)
Sets the set of extension AVPs with all the values in the given array. |
void |
setFailedAvp(FailedAvp failedAvp)
|
void |
setFailedAvps(FailedAvp[] failedAvps)
|
void |
setOriginHost(DiameterIdentityAvp originHost)
Sets the value of the Origin-Host AVP, of type DiameterIdentity. |
void |
setOriginRealm(DiameterIdentityAvp originRealm)
Sets the value of the Origin-Realm AVP, of type DiameterIdentity. |
void |
setOriginStateId(long originStateId)
|
void |
setProxyInfo(ProxyInfoAvp proxyInfo)
|
void |
setProxyInfos(ProxyInfoAvp[] proxyInfos)
|
void |
setRedirectHost(DiameterURIAvp redirectHost)
|
void |
setRedirectHosts(DiameterURIAvp[] redirectHosts)
|
void |
setRedirectHostUsage(RedirectHostUsageType redirectHostUsage)
|
void |
setRedirectMaxCacheTime(long redirectMaxCacheTime)
|
void |
setResultCode(long resultCode)
|
void |
setRouteRecord(DiameterIdentityAvp routeRecord)
|
void |
setRouteRecords(DiameterIdentityAvp[] routeRecords)
|
void |
setSessionId(java.lang.String sessionId)
Sets the value of the Session-Id AVP, of type UTF8String. |
void |
setUserName(java.lang.String userName)
|
void |
setVendorSpecificApplicationId(VendorSpecificApplicationIdAvp id)
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected org.jdiameter.api.Message message
protected boolean destinationHostMandatory
protected boolean destinationRealmMandatory
protected boolean originHostMandatory
protected boolean originRealmMandatory
protected org.apache.log4j.Logger log
| Constructor Detail |
|---|
public DiameterMessageImpl(org.jdiameter.api.Message message)
| Method Detail |
|---|
protected void addAvpAsByteArray(int code,
byte[] value,
boolean mandatory)
public java.lang.Object clone()
DiameterMessage
clone in interface DiameterMessageclone in class java.lang.Objectprotected AddressAvp[] getAvpAsAddress(int code)
public long getAcctApplicationId()
protected DiameterIdentityAvp[] getAllAvpAsIdentity(int code)
public long getAuthApplicationId()
protected java.util.Date getAvpAsDate(int code)
protected DiameterIdentityAvp getAvpAsIdentity(int code)
protected int getAvpAsInt32(int code)
protected long getAvpAsUInt32(int code)
protected java.lang.String getAvpAsUtf8(int code)
protected long[] getAvpsAsUInt32(int code)
protected int[] getAvpsAsInt32(int code)
public DiameterAvp[] getAvps()
DiameterMessage
getAvps in interface DiameterMessagepublic DiameterCommand getCommand()
DiameterMessageDiameterCommand contained in the header of this message.
getCommand in interface DiameterMessagepublic DiameterIdentityAvp getDestinationHost()
DiameterMessage
getDestinationHost in interface DiameterMessagepublic DiameterIdentityAvp getDestinationRealm()
DiameterMessage
getDestinationRealm in interface DiameterMessagepublic java.lang.String getErrorMessage()
public DiameterIdentityAvp getErrorReportingHost()
public java.util.Date getEventTimestamp()
public DiameterAvp[] getExtensionAvps()
DiameterMessage
getExtensionAvps in interface DiameterMessagepublic FailedAvp[] getFailedAvps()
public org.jdiameter.api.Message getGenericData()
public DiameterHeader getHeader()
DiameterMessageorg.mobicents.slee.resource.diameter.base.DiameterHeader in this message, if it exists. The header will not exist for
outgoing messages created via the net.java.slee.resource.diameter.base.DiameterMessageFactory.
getHeader in interface DiameterMessagepublic abstract java.lang.String getLongName()
public DiameterIdentityAvp getOriginHost()
DiameterMessage
getOriginHost in interface DiameterMessagepublic DiameterIdentityAvp getOriginRealm()
DiameterMessage
getOriginRealm in interface DiameterMessagepublic long getOriginStateId()
public ProxyInfoAvp[] getProxyInfos()
public DiameterURIAvp[] getRedirectHosts()
public RedirectHostUsageType getRedirectHostUsage()
public long getRedirectMaxCacheTime()
public long getResultCode()
public DiameterIdentityAvp[] getRouteRecords()
public java.lang.String getSessionId()
DiameterMessage
getSessionId in interface DiameterMessagepublic abstract java.lang.String getShortName()
public java.lang.String getUserName()
public VendorSpecificApplicationIdAvp getVendorSpecificApplicationId()
public boolean hasAcctApplicationId()
public boolean hasAuthApplicationId()
public boolean hasDestinationHost()
public boolean hasDestinationRealm()
public boolean hasErrorMessage()
public boolean hasErrorReportingHost()
public boolean hasEventTimestamp()
public boolean hasOriginHost()
DiameterMessage
hasOriginHost in interface DiameterMessagepublic boolean hasOriginRealm()
DiameterMessage
hasOriginRealm in interface DiameterMessagepublic boolean hasOriginStateId()
public boolean hasRedirectHostUsage()
public boolean hasRedirectMaxCacheTime()
public boolean hasResultCode()
public boolean hasSessionId()
DiameterMessage
hasSessionId in interface DiameterMessagepublic boolean hasUserName()
public boolean hasVendorSpecificApplicationId()
public void setAvpAsAddress(int code,
AddressAvp[] avps,
boolean mandatory,
boolean... remove)
public void setAcctApplicationId(long acctApplicationId)
public void setAuthApplicationId(long authApplicationId)
protected void setAvpAsDate(int code,
java.util.Date value,
boolean mandatory,
boolean... remove)
protected org.jdiameter.api.AvpSet setAvpAsGroup(int code,
DiameterAvp[] childs,
boolean mandatory,
boolean... remove)
protected void setAvpAsIdentity(int code,
java.lang.String value,
boolean octet,
boolean mandatory,
boolean... remove)
protected void setAvpAsInt32(int code,
int value,
boolean mandatory,
boolean... remove)
protected void setAvpAsUInt32(int code,
long value,
boolean mandatory,
boolean... remove)
protected void setAvpAsUtf8(int code,
java.lang.String value,
boolean mandatory,
boolean... remove)
protected void setAvpsAsUInt32(int code,
long[] values,
boolean mandatory,
boolean... remove)
public void setDestinationHost(DiameterIdentityAvp destinationHost)
DiameterMessage
setDestinationHost in interface DiameterMessagepublic void setDestinationRealm(DiameterIdentityAvp destinationRealm)
DiameterMessage
setDestinationRealm in interface DiameterMessagepublic void setErrorMessage(java.lang.String errorMessage)
public void setErrorReportingHost(DiameterIdentityAvp errorReportingHost)
public void setEventTimestamp(java.util.Date eventTimestamp)
public void setExtensionAvps(DiameterAvp[] avps)
throws AvpNotAllowedException
DiameterMessage
setExtensionAvps in interface DiameterMessageAvpNotAllowedException - if an AVP is encountered of a type already known to this class
(i.e. an AVP for which get/set methods already appear in this class)public void setFailedAvp(FailedAvp failedAvp)
public void setFailedAvps(FailedAvp[] failedAvps)
public void setOriginHost(DiameterIdentityAvp originHost)
DiameterMessage
setOriginHost in interface DiameterMessagepublic void setOriginRealm(DiameterIdentityAvp originRealm)
DiameterMessage
setOriginRealm in interface DiameterMessagepublic void setOriginStateId(long originStateId)
public void setProxyInfo(ProxyInfoAvp proxyInfo)
public void setProxyInfos(ProxyInfoAvp[] proxyInfos)
public void setRedirectHost(DiameterURIAvp redirectHost)
public void setRedirectHosts(DiameterURIAvp[] redirectHosts)
public void setRedirectHostUsage(RedirectHostUsageType redirectHostUsage)
public void setRedirectMaxCacheTime(long redirectMaxCacheTime)
public void setResultCode(long resultCode)
public void setRouteRecord(DiameterIdentityAvp routeRecord)
public void setRouteRecords(DiameterIdentityAvp[] routeRecords)
public void setSessionId(java.lang.String sessionId)
DiameterMessage
setSessionId in interface DiameterMessagepublic void setUserName(java.lang.String userName)
public void setVendorSpecificApplicationId(VendorSpecificApplicationIdAvp id)
public java.lang.String toString()
toString in class java.lang.Objectpublic void addAvp(DiameterAvp avp)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||