public interface MessageFactory
Modifier and Type | Method and Description |
---|---|
RepositoryDataId |
createRepositoryDataId()
Create an empty RepositoryDataId (Grouped AVP) instance.
|
RepositoryDataId |
createRepositoryDataId(byte[] serviceIndication,
long sequenceNumber)
Create a RepositoryDataId (Grouped AVP) instance using required AVP values.
|
SupportedApplications |
createSupportedApplications()
Create an empty SupportedApplications (Grouped AVP) instance.
|
SupportedApplications |
createSupportedApplications(long authApplicationId,
long acctApplicationId,
VendorSpecificApplicationId vendorSpecificApplicationId)
Create a SupportedApplications (Grouped AVP) instance using required AVP values.
|
SupportedFeatures |
createSupportedFeatures()
Create an empty SupportedFeatures (Grouped AVP) instance.
|
SupportedFeatures |
createSupportedFeatures(long vendorId,
long featureListId,
long featureList)
Create a SupportedFeatures (Grouped AVP) instance using required AVP values.
|
UserData |
createUserData(byte[] value)
Create an instance of UserData that can be set in the User-Data AVP.
|
UserData |
createUserData(ShData value)
Create an instance of UserData that can be set in the User-Data AVP.
|
UserData |
createUserData(java.lang.String value)
Create an instance of UserData that can be set in the User-Data AVP.
|
UserIdentity |
createUserIdentity()
Create an empty UserIdentity (Grouped AVP) instance.
|
<T extends DiameterAvp> |
decodeAvp(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.
|
DiameterMessageFactory |
getBaseMessageFactory()
Get a factory to create AVPs and messages defined by Diameter Base.
|
UserDataObjectFactory |
getUserDataObjectFactory()
Get a factory to create objects that can be marshalled into the User-Data XML document
|
boolean |
isRecognizedAvp(DiameterAvp avp)
Returns true if the specified AVP is recognized by this MessageFactory.
|
DiameterMessageFactory getBaseMessageFactory()
UserDataObjectFactory getUserDataObjectFactory()
UserData createUserData(byte[] value)
value
- an XML document as a byte arrayUserData createUserData(java.lang.String value)
value
- an XML document as a StringUserData createUserData(ShData value) throws UserDataException
value
- ShData object created using an instance of
UserDataObjectFactory
.UserDataException
SupportedFeatures createSupportedFeatures(long vendorId, long featureListId, long featureList)
SupportedFeatures createSupportedFeatures()
RepositoryDataId createRepositoryDataId(byte[] serviceIndication, long sequenceNumber)
RepositoryDataId createRepositoryDataId()
SupportedApplications createSupportedApplications(long authApplicationId, long acctApplicationId, VendorSpecificApplicationId vendorSpecificApplicationId)
SupportedApplications createSupportedApplications()
UserIdentity createUserIdentity()
byte[] encodeAvp(DiameterAvp avp)
<T extends DiameterAvp> T decodeAvp(byte[] bytes) throws DecodeException, AvpNotAllowedException
boolean isRecognizedAvp(DiameterAvp avp)