Interface SubscribeNotificationsAnswer
-
- All Superinterfaces:
Cloneable,DiameterMessage,DiameterShBaseMessage,DiameterShMessage
public interface SubscribeNotificationsAnswer extends DiameterShMessage
Defines an interface representing the Subscribe-Notifications-Answer command. From the Diameter Sh Reference Point Protocol Details (3GPP TS 29.329 V12.6.0) specification:6.1.6 Subscribe-Notifications-Answer (SNA) Command The Subscribe-Notifications-Answer command, indicated by the Command-Code field set to 308 and the 'R' bit cleared in the Command Flags field, is sent by a server in response to the Subscribe-Notifications-Request command. The Result-Code or Experimental-Result AVP may contain one of the values defined in section 6.2 or in 3GPP TS 29.229 [6]. Message Format < Subscribe-Notifications-Answer > ::= < Diameter Header: 308, PXY, 16777217 > < Session-Id > { Vendor-Specific-Application-Id } { Auth-Session-State } [ Result-Code ] [ Experimental-Result ] { Origin-Host } { Origin-Realm } [ Wildcarded-Public-Identity ] [ Wildcarded-IMPU ] *[ Supported-Features ] [ User-Data ] [ Expiry-Time ] [ OC-Supported-Features ] [ OC-OLR ] *[ AVP ] *[ Failed-AVP ] *[ Proxy-Info ] *[ Route-Record ]
-
-
Field Summary
Fields Modifier and Type Field Description static intcommandCode
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AuthSessionStategetAuthSessionState()Returns the value of the Auth-Session-State AVP, of type Enumerated.ExperimentalResultgetExperimentalResult()Returns the value of the Experimental-Result AVP, of type Grouped.DategetExpiryTime()Returns the value of the Expiry-Time AVP, of type Time.DiameterAvp[]getExtensionAvps()Returns the set of extension AVPs.FailedAvp[]getFailedAvps()Returns the set of Failed-AVP AVPs.OcOlrgetOcOlr()Returns the value of the OC-OLR AVP, of type Grouped.OcSupportedFeaturesgetOcSupportedFeatures()Returns the value of the OC-Supported-Features AVP, of type Grouped.DiameterIdentitygetOriginHost()Returns the value of the Origin-Host AVP, of type DiameterIdentity.DiameterIdentitygetOriginRealm()Returns the value of the Origin-Realm AVP, of type DiameterIdentity.ProxyInfo[]getProxyInfos()Returns the set of Proxy-Info AVPs.longgetResultCode()Returns the value of the Result-Code AVP, of type Unsigned32.DiameterIdentity[]getRouteRecords()Returns the set of Route-Record AVPs.StringgetSessionId()Returns the value of the Session-Id AVP, of type UTF8String.SupportedFeatures[]getSupportedFeatureses()Returns the set of Supported-Features AVPs.UserDatagetUserData()Returns the value of the User-Data AVP, of type UserData.VendorSpecificApplicationIdgetVendorSpecificApplicationId()Returns the value of the Vendor-Specific-Application-Id AVP, of type Grouped.StringgetWildcardedImpu()Returns the value of the Wildcarded-IMPU AVP, of type UTF8String.StringgetWildcardedPublicIdentity()Returns the value of the Wildcarded-Public-Identity AVP, of type UTF8String.booleanhasAuthSessionState()Returns true if the Auth-Session-State AVP is present in the message.booleanhasExperimentalResult()Returns true if the Experimental-Result AVP is present in the message.booleanhasExpiryTime()Returns true if the Expiry-Time AVP is present in the message.booleanhasOcOlr()Returns true if the OC-OLR AVP is present in the message.booleanhasOcSupportedFeatures()Returns true if the OC-Supported-Features AVP is present in the message.booleanhasOriginHost()Returns true if the Origin-Host AVP is present in the message.booleanhasOriginRealm()Returns true if the Origin-Realm AVP is present in the message.booleanhasResultCode()Returns true if the Result-Code AVP is present in the message.booleanhasSessionId()Returns true if the Session-Id AVP is present in the message.booleanhasUserData()Returns true if the User-Data AVP is present in the message.booleanhasVendorSpecificApplicationId()Returns true if the Vendor-Specific-Application-Id AVP is present in the message.booleanhasWildcardedImpu()Returns true if the Wildcarded-IMPU AVP is present in the message.booleanhasWildcardedPublicIdentity()Returns true if the Wildcarded-Public-Identity AVP is present in the message.voidremoveAuthSessionState()Removes the Auth-Session-State AVP from the message.voidremoveExperimentalResult()Removes the Experimental-Result AVP from the message.voidremoveExpiryTime()Removes the Expiry-Time AVP from the message.voidremoveExtensionAvps()Removes all extension AVPs from the message.voidremoveFailedAvps()Removes all Failed-AVP AVPs from the message.voidremoveOcOlr()Removes the OC-OLR AVP from the message.voidremoveOcSupportedFeatures()Removes the OC-Supported-Features AVP from the message.voidremoveOriginHost()Removes the Origin-Host AVP from the message.voidremoveOriginRealm()Removes the Origin-Realm AVP from the message.voidremoveProxyInfos()Removes all Proxy-Info AVPs from the message.voidremoveResultCode()Removes the Result-Code AVP from the message.voidremoveRouteRecords()Removes all Route-Record AVPs from the message.voidremoveSessionId()Removes the Session-Id AVP from the message.voidremoveSupportedFeatureses()Removes all Supported-Features AVPs from the message.voidremoveUserData()Removes the User-Data AVP from the message.voidremoveVendorSpecificApplicationId()Removes the Vendor-Specific-Application-Id AVP from the message.voidremoveWildcardedImpu()Removes the Wildcarded-IMPU AVP from the message.voidremoveWildcardedPublicIdentity()Removes the Wildcarded-Public-Identity AVP from the message.voidsetAuthSessionState(AuthSessionState authSessionState)Sets the value of the Auth-Session-State AVP, of type Enumerated.voidsetExperimentalResult(ExperimentalResult experimentalResult)Sets the value of the Experimental-Result AVP, of type Grouped.voidsetExpiryTime(Date expiryTime)Sets the value of the Expiry-Time AVP, of type Time.voidsetExtensionAvps(DiameterAvp[] avps)Sets the set of extension AVPs with all the values in the given array.voidsetFailedAvp(FailedAvp failedAvp)Sets a single Failed-AVP AVP in the message, of type Grouped.voidsetFailedAvps(FailedAvp[] failedAvps)Sets the set of Failed-AVP AVPs, with all the values in the given array.voidsetOcOlr(OcOlr ocOlr)Sets the value of the OC-OLR AVP, of type Grouped.voidsetOcSupportedFeatures(OcSupportedFeatures ocSupportedFeatures)Sets the value of the OC-Supported-Features AVP, of type Grouped.voidsetOriginHost(DiameterIdentity originHost)Sets the value of the Origin-Host AVP, of type DiameterIdentity.voidsetOriginRealm(DiameterIdentity originRealm)Sets the value of the Origin-Realm AVP, of type DiameterIdentity.voidsetProxyInfo(ProxyInfo proxyInfo)Sets a single Proxy-Info AVP in the message, of type Grouped.voidsetProxyInfos(ProxyInfo[] proxyInfos)Sets the set of Proxy-Info AVPs, with all the values in the given array.voidsetResultCode(long resultCode)Sets the value of the Result-Code AVP, of type Unsigned32.voidsetRouteRecord(DiameterIdentity routeRecord)Sets a single Route-Record AVP in the message, of type DiameterIdentity.voidsetRouteRecords(DiameterIdentity[] routeRecords)Sets the set of Route-Record AVPs, with all the values in the given array.voidsetSessionId(String sessionId)Sets the value of the Session-Id AVP, of type UTF8String.voidsetSupportedFeatures(SupportedFeatures supportedFeatures)Sets a single Supported-Features AVP in the message, of type Grouped.voidsetSupportedFeatureses(SupportedFeatures[] supportedFeatureses)Sets the set of Supported-Features AVPs, with all the values in the given array.voidsetUserData(UserData userData)Sets the value of the User-Data AVP, of type UserData.voidsetVendorSpecificApplicationId(VendorSpecificApplicationId vendorSpecificApplicationId)Sets the value of the Vendor-Specific-Application-Id AVP, of type Grouped.voidsetWildcardedImpu(String wildcardedImpu)Sets the value of the Wildcarded-IMPU AVP, of type UTF8String.voidsetWildcardedPublicIdentity(String wildcardedPublicIdentity)Sets the value of the Wildcarded-Public-Identity AVP, of type UTF8String.-
Methods inherited from interface org.jainslee.resources.diameter.base.DiameterMessage
clone, getAvps, getCommand, getDestinationHost, getDestinationRealm, getHeader, setDestinationHost, setDestinationRealm
-
-
-
-
Field Detail
-
commandCode
static final int commandCode
- See Also:
- Constant Field Values
-
-
Method Detail
-
hasSessionId
boolean hasSessionId()
Returns true if the Session-Id AVP is present in the message.
-
getSessionId
String getSessionId()
Returns the value of the Session-Id AVP, of type UTF8String.- Specified by:
getSessionIdin interfaceDiameterMessage- Returns:
- the value of the Session-Id AVP or null if it has not been set on this message
-
setSessionId
void setSessionId(String sessionId)
Sets the value of the Session-Id AVP, of type UTF8String.- Specified by:
setSessionIdin interfaceDiameterMessage- Throws:
NullPointerException- ifsessionIdisnull.
-
removeSessionId
void removeSessionId()
Removes the Session-Id AVP from the message. If the Session-Id AVP is not present, this method returns silently.
-
hasVendorSpecificApplicationId
boolean hasVendorSpecificApplicationId()
Returns true if the Vendor-Specific-Application-Id AVP is present in the message.- Specified by:
hasVendorSpecificApplicationIdin interfaceDiameterShBaseMessage
-
getVendorSpecificApplicationId
VendorSpecificApplicationId getVendorSpecificApplicationId()
Returns the value of the Vendor-Specific-Application-Id AVP, of type Grouped.- Specified by:
getVendorSpecificApplicationIdin interfaceDiameterShBaseMessage- Returns:
- the value of the Vendor-Specific-Application-Id AVP or null if it has not been set on this message
-
setVendorSpecificApplicationId
void setVendorSpecificApplicationId(VendorSpecificApplicationId vendorSpecificApplicationId)
Sets the value of the Vendor-Specific-Application-Id AVP, of type Grouped.- Specified by:
setVendorSpecificApplicationIdin interfaceDiameterShBaseMessage- Throws:
NullPointerException- ifvendorSpecificApplicationIdisnull.
-
removeVendorSpecificApplicationId
void removeVendorSpecificApplicationId()
Removes the Vendor-Specific-Application-Id AVP from the message. If the Vendor-Specific-Application-Id AVP is not present, this method returns silently.
-
hasAuthSessionState
boolean hasAuthSessionState()
Returns true if the Auth-Session-State AVP is present in the message.- Specified by:
hasAuthSessionStatein interfaceDiameterShBaseMessage
-
getAuthSessionState
AuthSessionState getAuthSessionState()
Returns the value of the Auth-Session-State AVP, of type Enumerated.- Specified by:
getAuthSessionStatein interfaceDiameterShBaseMessage- Returns:
- the value of the Auth-Session-State AVP or null if it has not been set on this message
-
setAuthSessionState
void setAuthSessionState(AuthSessionState authSessionState)
Sets the value of the Auth-Session-State AVP, of type Enumerated.- Specified by:
setAuthSessionStatein interfaceDiameterShBaseMessage- Throws:
NullPointerException- ifauthSessionStateisnull.
-
removeAuthSessionState
void removeAuthSessionState()
Removes the Auth-Session-State AVP from the message. If the Auth-Session-State AVP is not present, this method returns silently.
-
hasResultCode
boolean hasResultCode()
Returns true if the Result-Code AVP is present in the message.
-
getResultCode
long getResultCode()
Returns the value of the Result-Code AVP, of type Unsigned32. UsehasResultCode()to check the existence of this AVP.- Returns:
- the value of the Result-Code AVP
- Throws:
IllegalStateException- if the Result-Code AVP has not been set on this message
-
setResultCode
void setResultCode(long resultCode)
Sets the value of the Result-Code AVP, of type Unsigned32.
-
removeResultCode
void removeResultCode()
Removes the Result-Code AVP from the message. If the Result-Code AVP is not present, this method returns silently.
-
hasExperimentalResult
boolean hasExperimentalResult()
Returns true if the Experimental-Result AVP is present in the message.
-
getExperimentalResult
ExperimentalResult getExperimentalResult()
Returns the value of the Experimental-Result AVP, of type Grouped.- Returns:
- the value of the Experimental-Result AVP or null if it has not been set on this message
-
setExperimentalResult
void setExperimentalResult(ExperimentalResult experimentalResult)
Sets the value of the Experimental-Result AVP, of type Grouped.- Throws:
NullPointerException- ifexperimentalResultisnull.
-
removeExperimentalResult
void removeExperimentalResult()
Removes the Experimental-Result AVP from the message. If the Experimental-Result AVP is not present, this method returns silently.
-
hasOriginHost
boolean hasOriginHost()
Returns true if the Origin-Host AVP is present in the message.
-
getOriginHost
DiameterIdentity getOriginHost()
Returns the value of the Origin-Host AVP, of type DiameterIdentity.- Specified by:
getOriginHostin interfaceDiameterMessage- Returns:
- the value of the Origin-Host AVP or null if it has not been set on this message
-
setOriginHost
void setOriginHost(DiameterIdentity originHost)
Sets the value of the Origin-Host AVP, of type DiameterIdentity.- Specified by:
setOriginHostin interfaceDiameterMessage- Throws:
NullPointerException- iforiginHostisnull.
-
removeOriginHost
void removeOriginHost()
Removes the Origin-Host AVP from the message. If the Origin-Host AVP is not present, this method returns silently.
-
hasOriginRealm
boolean hasOriginRealm()
Returns true if the Origin-Realm AVP is present in the message.
-
getOriginRealm
DiameterIdentity getOriginRealm()
Returns the value of the Origin-Realm AVP, of type DiameterIdentity.- Specified by:
getOriginRealmin interfaceDiameterMessage- Returns:
- the value of the Origin-Realm AVP or null if it has not been set on this message
-
setOriginRealm
void setOriginRealm(DiameterIdentity originRealm)
Sets the value of the Origin-Realm AVP, of type DiameterIdentity.- Specified by:
setOriginRealmin interfaceDiameterMessage- Throws:
NullPointerException- iforiginRealmisnull.
-
removeOriginRealm
void removeOriginRealm()
Removes the Origin-Realm AVP from the message. If the Origin-Realm AVP is not present, this method returns silently.
-
hasWildcardedPublicIdentity
boolean hasWildcardedPublicIdentity()
Returns true if the Wildcarded-Public-Identity AVP is present in the message.
-
getWildcardedPublicIdentity
String getWildcardedPublicIdentity()
Returns the value of the Wildcarded-Public-Identity AVP, of type UTF8String.- Returns:
- the value of the Wildcarded-Public-Identity AVP or null if it has not been set on this message
-
setWildcardedPublicIdentity
void setWildcardedPublicIdentity(String wildcardedPublicIdentity)
Sets the value of the Wildcarded-Public-Identity AVP, of type UTF8String.- Throws:
NullPointerException- ifwildcardedPublicIdentityisnull.
-
removeWildcardedPublicIdentity
void removeWildcardedPublicIdentity()
Removes the Wildcarded-Public-Identity AVP from the message. If the Wildcarded-Public-Identity AVP is not present, this method returns silently.
-
hasWildcardedImpu
boolean hasWildcardedImpu()
Returns true if the Wildcarded-IMPU AVP is present in the message.
-
getWildcardedImpu
String getWildcardedImpu()
Returns the value of the Wildcarded-IMPU AVP, of type UTF8String.- Returns:
- the value of the Wildcarded-IMPU AVP or null if it has not been set on this message
-
setWildcardedImpu
void setWildcardedImpu(String wildcardedImpu)
Sets the value of the Wildcarded-IMPU AVP, of type UTF8String.- Throws:
NullPointerException- ifwildcardedImpuisnull.
-
removeWildcardedImpu
void removeWildcardedImpu()
Removes the Wildcarded-IMPU AVP from the message. If the Wildcarded-IMPU AVP is not present, this method returns silently.
-
getSupportedFeatureses
SupportedFeatures[] getSupportedFeatureses()
Returns the set of Supported-Features AVPs. The returned array contains the AVPs in the order they appear in the message. A return value of null implies that no Supported-Features AVPs have been set. The elements in the given array are SupportedFeatures objects.- Specified by:
getSupportedFeaturesesin interfaceDiameterShMessage
-
setSupportedFeatures
void setSupportedFeatures(SupportedFeatures supportedFeatures)
Sets a single Supported-Features AVP in the message, of type Grouped.- Specified by:
setSupportedFeaturesin interfaceDiameterShMessage- Throws:
NullPointerException- ifsupportedFeaturesisnull.
-
setSupportedFeatureses
void setSupportedFeatureses(SupportedFeatures[] supportedFeatureses)
Sets the set of Supported-Features AVPs, with all the values in the given array. The AVPs will be added to message in the order in which they appear in the array. Note: the array must not be altered by the caller following this call, and getSupportedFeatureses() is not guaranteed to return the same array instance, e.g. an "==" check would fail.- Specified by:
setSupportedFeaturesesin interfaceDiameterShMessage- Throws:
NullPointerException- ifsupportedFeaturesesisnull.
-
removeSupportedFeatureses
void removeSupportedFeatureses()
Removes all Supported-Features AVPs from the message. If no Supported-Features AVPs are present, this method returns silently.
-
hasUserData
boolean hasUserData()
Returns true if the User-Data AVP is present in the message.
-
getUserData
UserData getUserData()
Returns the value of the User-Data AVP, of type UserData.- Returns:
- the value of the User-Data AVP or null if it has not been set on this message
-
setUserData
void setUserData(UserData userData)
Sets the value of the User-Data AVP, of type UserData.- Throws:
NullPointerException- ifuserDataisnull.
-
removeUserData
void removeUserData()
Removes the User-Data AVP from the message. If the User-Data AVP is not present, this method returns silently.
-
hasExpiryTime
boolean hasExpiryTime()
Returns true if the Expiry-Time AVP is present in the message.
-
getExpiryTime
Date getExpiryTime()
Returns the value of the Expiry-Time AVP, of type Time.- Returns:
- the value of the Expiry-Time AVP or null if it has not been set on this message
-
setExpiryTime
void setExpiryTime(Date expiryTime)
Sets the value of the Expiry-Time AVP, of type Time.- Throws:
NullPointerException- ifexpiryTimeisnull.
-
removeExpiryTime
void removeExpiryTime()
Removes the Expiry-Time AVP from the message. If the Expiry-Time AVP is not present, this method returns silently.
-
hasOcSupportedFeatures
boolean hasOcSupportedFeatures()
Returns true if the OC-Supported-Features AVP is present in the message.
-
getOcSupportedFeatures
OcSupportedFeatures getOcSupportedFeatures()
Returns the value of the OC-Supported-Features AVP, of type Grouped.- Returns:
- the value of the OC-Supported-Features AVP or null if it has not been set on this message
-
setOcSupportedFeatures
void setOcSupportedFeatures(OcSupportedFeatures ocSupportedFeatures)
Sets the value of the OC-Supported-Features AVP, of type Grouped.- Throws:
NullPointerException- ifocSupportedFeaturesisnull.
-
removeOcSupportedFeatures
void removeOcSupportedFeatures()
Removes the OC-Supported-Features AVP from the message. If the OC-Supported-Features AVP is not present, this method returns silently.
-
hasOcOlr
boolean hasOcOlr()
Returns true if the OC-OLR AVP is present in the message.
-
getOcOlr
OcOlr getOcOlr()
Returns the value of the OC-OLR AVP, of type Grouped.- Returns:
- the value of the OC-OLR AVP or null if it has not been set on this message
-
setOcOlr
void setOcOlr(OcOlr ocOlr)
Sets the value of the OC-OLR AVP, of type Grouped.- Throws:
NullPointerException- ifocOlrisnull.
-
removeOcOlr
void removeOcOlr()
Removes the OC-OLR AVP from the message. If the OC-OLR AVP is not present, this method returns silently.
-
getFailedAvps
FailedAvp[] getFailedAvps()
Returns the set of Failed-AVP AVPs. The returned array contains the AVPs in the order they appear in the message. A return value of null implies that no Failed-AVP AVPs have been set. The elements in the given array are FailedAvp objects.
-
setFailedAvp
void setFailedAvp(FailedAvp failedAvp)
Sets a single Failed-AVP AVP in the message, of type Grouped.- Throws:
NullPointerException- iffailedAvpisnull.
-
setFailedAvps
void setFailedAvps(FailedAvp[] failedAvps)
Sets the set of Failed-AVP AVPs, with all the values in the given array. The AVPs will be added to message in the order in which they appear in the array. Note: the array must not be altered by the caller following this call, and getFailedAvps() is not guaranteed to return the same array instance, e.g. an "==" check would fail.- Throws:
NullPointerException- iffailedAvpsisnull.
-
removeFailedAvps
void removeFailedAvps()
Removes all Failed-AVP AVPs from the message. If no Failed-AVP AVPs are present, this method returns silently.
-
getProxyInfos
ProxyInfo[] getProxyInfos()
Returns the set of Proxy-Info AVPs. The returned array contains the AVPs in the order they appear in the message. A return value of null implies that no Proxy-Info AVPs have been set. The elements in the given array are ProxyInfo objects.- Specified by:
getProxyInfosin interfaceDiameterShBaseMessage
-
setProxyInfo
void setProxyInfo(ProxyInfo proxyInfo)
Sets a single Proxy-Info AVP in the message, of type Grouped.- Specified by:
setProxyInfoin interfaceDiameterShBaseMessage- Throws:
NullPointerException- ifproxyInfoisnull.
-
setProxyInfos
void setProxyInfos(ProxyInfo[] proxyInfos)
Sets the set of Proxy-Info AVPs, with all the values in the given array. The AVPs will be added to message in the order in which they appear in the array. Note: the array must not be altered by the caller following this call, and getProxyInfos() is not guaranteed to return the same array instance, e.g. an "==" check would fail.- Specified by:
setProxyInfosin interfaceDiameterShBaseMessage- Throws:
NullPointerException- ifproxyInfosisnull.
-
removeProxyInfos
void removeProxyInfos()
Removes all Proxy-Info AVPs from the message. If no Proxy-Info AVPs are present, this method returns silently.
-
getRouteRecords
DiameterIdentity[] getRouteRecords()
Returns the set of Route-Record AVPs. The returned array contains the AVPs in the order they appear in the message. A return value of null implies that no Route-Record AVPs have been set. The elements in the given array are DiameterIdentity objects.- Specified by:
getRouteRecordsin interfaceDiameterShBaseMessage
-
setRouteRecord
void setRouteRecord(DiameterIdentity routeRecord)
Sets a single Route-Record AVP in the message, of type DiameterIdentity.- Specified by:
setRouteRecordin interfaceDiameterShBaseMessage- Throws:
NullPointerException- ifrouteRecordisnull.
-
setRouteRecords
void setRouteRecords(DiameterIdentity[] routeRecords)
Sets the set of Route-Record AVPs, with all the values in the given array. The AVPs will be added to message in the order in which they appear in the array. Note: the array must not be altered by the caller following this call, and getRouteRecords() is not guaranteed to return the same array instance, e.g. an "==" check would fail.- Specified by:
setRouteRecordsin interfaceDiameterShBaseMessage- Throws:
NullPointerException- ifrouteRecordsisnull.
-
removeRouteRecords
void removeRouteRecords()
Removes all Route-Record AVPs from the message. If no Route-Record AVPs are present, this method returns silently.
-
getExtensionAvps
DiameterAvp[] getExtensionAvps()
Returns the set of extension AVPs. The returned array contains the extension AVPs in the order they appear in the message. A return value of null implies that no extensions AVPs have been set.- Specified by:
getExtensionAvpsin interfaceDiameterShBaseMessage
-
setExtensionAvps
void setExtensionAvps(DiameterAvp[] avps) throws AvpNotAllowedException
Sets the set of extension AVPs with all the values in the given array. The AVPs will be added to message in the order in which they appear in the array. Note: the array must not be altered by the caller following this call, and getExtensionAvps() is not guaranteed to return the same array instance, e.g. an "==" check would fail.- Specified by:
setExtensionAvpsin interfaceDiameterShBaseMessage- Throws:
AvpNotAllowedException- 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)NullPointerException- ifavpsisnull.
-
removeExtensionAvps
void removeExtensionAvps()
Removes all extension AVPs from the message. If no extension AVPs are present, this method returns silently.
-
-