Interface MessageFactory
-
- All Known Subinterfaces:
ShMessageFactory
public interface MessageFactoryFactory to support the creation of concrete instances of AVPs for Diameter Sh applications.- Author:
- Open Cloud
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SupportedApplicationscreateSupportedApplications()Create an empty SupportedApplications (Grouped AVP) instance.SupportedApplicationscreateSupportedApplications(long authApplicationId, long acctApplicationId, VendorSpecificApplicationId vendorSpecificApplicationId)Create a SupportedApplications (Grouped AVP) instance using required AVP values.SupportedFeaturescreateSupportedFeatures()Create an empty SupportedFeatures (Grouped AVP) instance.SupportedFeaturescreateSupportedFeatures(long vendorId, long featureListId, long featureList)Create a SupportedFeatures (Grouped AVP) instance using required AVP values.UserDatacreateUserData(byte[] value)Create an instance of UserData that can be set in the User-Data AVP.UserDatacreateUserData(String value)Create an instance of UserData that can be set in the User-Data AVP.UserDatacreateUserData(ShData value)Create an instance of UserData that can be set in the User-Data AVP.UserIdentitycreateUserIdentity()Create an empty UserIdentity (Grouped AVP) instance.<T extends DiameterAvp>
TdecodeAvp(byte[] bytes)Decodes an AVP from a byte array using standard Diameter AVP data formats.byte[]encodeAvp(DiameterAvp avp)Encodes an AVP to a byte array using standard Diameter AVP data formats.DiameterMessageFactorygetBaseMessageFactory()Get a factory to create AVPs and messages defined by Diameter Base.UserDataObjectFactorygetUserDataObjectFactory()Get a factory to create objects that can be marshalled into the User-Data XML documentbooleanisRecognizedAvp(DiameterAvp avp)Returns true if the specified AVP is recognized by this MessageFactory.
-
-
-
Method Detail
-
getBaseMessageFactory
DiameterMessageFactory getBaseMessageFactory()
Get a factory to create AVPs and messages defined by Diameter Base.- Returns:
- base Diameter message factory
-
getUserDataObjectFactory
UserDataObjectFactory getUserDataObjectFactory()
Get a factory to create objects that can be marshalled into the User-Data XML document- Returns:
- User-Data XML object factory
-
createUserData
UserData createUserData(byte[] value)
Create an instance of UserData that can be set in the User-Data AVP.- Parameters:
value- an XML document as a byte array- Returns:
- a UserData instance
-
createUserData
UserData createUserData(String value)
Create an instance of UserData that can be set in the User-Data AVP.- Parameters:
value- an XML document as a String- Returns:
- a UserData instance
-
createUserData
UserData createUserData(ShData value) throws UserDataException
Create an instance of UserData that can be set in the User-Data AVP.- Parameters:
value- ShData object created using an instance ofUserDataObjectFactory.- Returns:
- a UserData instance
- Throws:
UserDataException
-
createSupportedFeatures
SupportedFeatures createSupportedFeatures(long vendorId, long featureListId, long featureList)
Create a SupportedFeatures (Grouped AVP) instance using required AVP values.
-
createSupportedFeatures
SupportedFeatures createSupportedFeatures()
Create an empty SupportedFeatures (Grouped AVP) instance.
-
createUserIdentity
UserIdentity createUserIdentity()
Create an empty UserIdentity (Grouped AVP) instance.
-
createSupportedApplications
SupportedApplications createSupportedApplications(long authApplicationId, long acctApplicationId, VendorSpecificApplicationId vendorSpecificApplicationId)
Create a SupportedApplications (Grouped AVP) instance using required AVP values.
-
createSupportedApplications
SupportedApplications createSupportedApplications()
Create an empty SupportedApplications (Grouped AVP) instance.
-
encodeAvp
byte[] encodeAvp(DiameterAvp avp)
Encodes an AVP to a byte array using standard Diameter AVP data formats.
-
decodeAvp
<T extends DiameterAvp> T decodeAvp(byte[] bytes) throws DecodeException, AvpNotAllowedException
Decodes an AVP from a byte array using standard Diameter AVP data formats.
-
isRecognizedAvp
boolean isRecognizedAvp(DiameterAvp avp)
Returns true if the specified AVP is recognized by this MessageFactory. Returns false for unrecognized (e.g. Extension) AVPs.- Returns:
- true if the specified AVP is recognized by this MessageFactory.
-
-