Interface DiameterShBaseMessage
-
- All Superinterfaces:
Cloneable
,DiameterMessage
- All Known Subinterfaces:
DiameterShMessage
,DiameterShMessage
,DiameterShMessage
,DiameterShMessage
,DiameterShMessage
,DiameterShMessage
,ProfileUpdateAnswer
,ProfileUpdateAnswer
,ProfileUpdateAnswer
,ProfileUpdateAnswer
,ProfileUpdateAnswer
,ProfileUpdateAnswer
,ProfileUpdateRequest
,ProfileUpdateRequest
,ProfileUpdateRequest
,ProfileUpdateRequest
,ProfileUpdateRequest
,ProfileUpdateRequest
,PushNotificationAnswer
,PushNotificationAnswer
,PushNotificationAnswer
,PushNotificationAnswer
,PushNotificationAnswer
,PushNotificationAnswer
,PushNotificationRequest
,PushNotificationRequest
,PushNotificationRequest
,PushNotificationRequest
,PushNotificationRequest
,PushNotificationRequest
,SubscribeNotificationsAnswer
,SubscribeNotificationsAnswer
,SubscribeNotificationsAnswer
,SubscribeNotificationsAnswer
,SubscribeNotificationsAnswer
,SubscribeNotificationsAnswer
,SubscribeNotificationsRequest
,SubscribeNotificationsRequest
,SubscribeNotificationsRequest
,SubscribeNotificationsRequest
,SubscribeNotificationsRequest
,SubscribeNotificationsRequest
,UserDataAnswer
,UserDataAnswer
,UserDataAnswer
,UserDataAnswer
,UserDataAnswer
,UserDataAnswer
,UserDataRequest
,UserDataRequest
,UserDataRequest
,UserDataRequest
,UserDataRequest
,UserDataRequest
public interface DiameterShBaseMessage extends DiameterMessage
Interface containing accessor methods for AVPs present in all Diameter Sh messages. Useful for defining utility methods to read/change a common AVP of any type of message.- Author:
- Open Cloud
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AuthSessionState
getAuthSessionState()
Returns the value of the Auth-Session-State AVP, of type Enumerated.DiameterAvp[]
getExtensionAvps()
Returns the set of extension AVPs.ProxyInfo[]
getProxyInfos()
Returns the set of Proxy-Info AVPs.DiameterIdentity[]
getRouteRecords()
Returns the set of Route-Record AVPs.VendorSpecificApplicationId
getVendorSpecificApplicationId()
Returns the value of the Vendor-Specific-Application-Id AVP, of type Grouped.boolean
hasAuthSessionState()
Returns true if the Auth-Session-State AVP is present in the message.boolean
hasVendorSpecificApplicationId()
Returns true if the Vendor-Specific-Application-Id AVP is present in the message.void
setAuthSessionState(AuthSessionState authSessionState)
Sets the value of the Auth-Session-State AVP, of type Enumerated.void
setExtensionAvps(DiameterAvp[] avps)
Sets the set of extension AVPs with all the values in the given array.void
setProxyInfo(ProxyInfo proxyInfo)
Sets a single Proxy-Info AVP in the message, of type Grouped.void
setProxyInfos(ProxyInfo[] proxyInfos)
Sets the set of Proxy-Info AVPs, with all the values in the given array.void
setRouteRecord(DiameterIdentity routeRecord)
Sets a single Route-Record AVP in the message, of type DiameterIdentity.void
setRouteRecords(DiameterIdentity[] routeRecords)
Sets the set of Route-Record AVPs, with all the values in the given array.void
setVendorSpecificApplicationId(VendorSpecificApplicationId vendorSpecificApplicationId)
Sets the value of the Vendor-Specific-Application-Id AVP, of type Grouped.-
Methods inherited from interface org.jainslee.resources.diameter.base.DiameterMessage
clone, getAvps, getCommand, getDestinationHost, getDestinationRealm, getHeader, getOriginHost, getOriginRealm, getSessionId, setDestinationHost, setDestinationRealm, setOriginHost, setOriginRealm, setSessionId
-
-
-
-
Method Detail
-
hasVendorSpecificApplicationId
boolean hasVendorSpecificApplicationId()
Returns true if the Vendor-Specific-Application-Id AVP is present in the message.
-
getVendorSpecificApplicationId
VendorSpecificApplicationId getVendorSpecificApplicationId()
Returns the value of the Vendor-Specific-Application-Id AVP, of type Grouped. A return value of null implies that the AVP has not been set.
-
setVendorSpecificApplicationId
void setVendorSpecificApplicationId(VendorSpecificApplicationId vendorSpecificApplicationId)
Sets the value of the Vendor-Specific-Application-Id AVP, of type Grouped.- Throws:
IllegalStateException
- if setVendorSpecificApplicationId has already been called
-
hasAuthSessionState
boolean hasAuthSessionState()
Returns true if the Auth-Session-State AVP is present in the message.
-
getAuthSessionState
AuthSessionState getAuthSessionState()
Returns the value of the Auth-Session-State AVP, of type Enumerated. A return value of null implies that the AVP has not been set.
-
setAuthSessionState
void setAuthSessionState(AuthSessionState authSessionState)
Sets the value of the Auth-Session-State AVP, of type Enumerated.- Throws:
IllegalStateException
- if setAuthSessionState has already been called
-
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.
-
setProxyInfo
void setProxyInfo(ProxyInfo proxyInfo)
Sets a single Proxy-Info AVP in the message, of type Grouped.- Throws:
IllegalStateException
- if setProxyInfo or setProxyInfos has already been called
-
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.- Throws:
IllegalStateException
- if setProxyInfo or setProxyInfos has already been called
-
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.
-
setRouteRecord
void setRouteRecord(DiameterIdentity routeRecord)
Sets a single Route-Record AVP in the message, of type DiameterIdentity.- Throws:
IllegalStateException
- if setRouteRecord or setRouteRecords has already been called
-
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.- Throws:
IllegalStateException
- if setRouteRecord or setRouteRecords has already been called
-
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.
-
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.- 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)IllegalStateException
- if setExtensionAvps has already been called
-
-