public interface DiameterGxProvider extends DiameterGxProviderFactory
eventCreditControlRequest(CreditControlRequest)
initialCreditControlRequest(CreditControlRequest)
updateCreditControlRequest(CreditControlRequest)
terminationCreditControlRequest(CreditControlRequest)
org.jainslee.resources.diameter.gx.DiameterGxMessageFactory#createGxCreditControlRequest()
.Modifier and Type | Method and Description |
---|---|
GxClientSessionActivity |
createGxClientSessionActivity()
Create a new activity to send and receive Diameter messages.
|
GxClientSessionActivity |
createGxClientSessionActivity(DiameterIdentity destinationHost,
DiameterIdentity destinationRealm)
Create a new activity to send and receive Diameter messages.
|
GxClientSessionActivity |
createGxClientSessionActivity(DiameterIdentity destinationHost,
DiameterIdentity destinationRealm,
java.lang.String sessionIdOptionalComponent)
Create a new activity to send and receive Diameter messages.
|
GxClientSessionActivity |
createGxClientSessionActivity(java.lang.String sessionIdOptionalComponent)
Create a new activity to send and receive Diameter messages.
|
CreditControlAnswer |
eventCreditControlRequest(CreditControlRequest ccr)
Send a Credit-Control-Request message to the appropriate peers, and block
until the response is received then return it.
|
DiameterGxMessageFactory |
getDiameterGxMessageFactory()
Return a message factory to be used to create concrete implementations of credit control messages and AVPs
|
CreditControlAnswer |
initialCreditControlRequest(CreditControlRequest ccr)
Send an initial Credit-Control-Request that will start a credit control session,
and block until the answer is received.
|
byte[] |
marshalGxCreditControlAnswer(CreditControlAnswer cca)
Marshal a Credit-Control-Answer into a byte array that can be serialized (e.g., stored in a CMP field).
|
byte[] |
marshalGxCreditControlRequest(CreditControlRequest ccr)
Marshal a Credit-Control-Request into a byte array that can be serialized (e.g., stored in a CMP field).
|
CreditControlAnswer |
terminationCreditControlRequest(CreditControlRequest ccr)
Send a termination Credit-Control-Request and block until the answer
is received.
|
CreditControlAnswer |
unmarshalGxCreditControlAnswer(byte[] b)
Unmarshal a Credit-Control-Answer from a byte array.
|
CreditControlRequest |
unmarshalGxCreditControlRequest(byte[] b)
Unmarshal a Credit-Control-Request from a byte array.
|
CreditControlAnswer |
updateCreditControlRequest(CreditControlRequest ccr)
Send an update (intermediate) Credit-Control-Request and block until the answer
is received.
|
getConfiguredTGPPVersion, getDiameterGxProviderVa10, getDiameterGxProviderVb90, getDiameterGxProviderVcd0, getInternalASURI
GxClientSessionActivity createGxClientSessionActivity() throws CreateActivityException
CreateActivityException
- if the RA could not create the activity for any reasoncreateGxClientSessionActivity(org.jainslee.resources.diameter.base.types.DiameterIdentity, org.jainslee.resources.diameter.base.types.DiameterIdentity)
GxClientSessionActivity createGxClientSessionActivity(DiameterIdentity destinationHost, DiameterIdentity destinationRealm) throws CreateActivityException
destinationHost
- a destination host to automatically put in all messages, may be null if not neededdestinationRealm
- a destination realm to automatically put in all messagesCreateActivityException
- if the RA could not create the activity for any reasoncreateGxClientSessionActivity()
GxClientSessionActivity createGxClientSessionActivity(java.lang.String sessionIdOptionalComponent) throws CreateActivityException
sessionIdOptionalComponent
- a string to append to the session ID generated for this activity. The Diameter session ID separator (';') will
be inserted between the generated session ID and the optional component.CreateActivityException
- if the RA could not create the activity for any reasonGxClientSessionActivity createGxClientSessionActivity(DiameterIdentity destinationHost, DiameterIdentity destinationRealm, java.lang.String sessionIdOptionalComponent) throws CreateActivityException
destinationHost
- a destination host to automatically put in all messagesdestinationRealm
- a destination realm to automatically put in all messagessessionIdOptionalComponent
- a string to append to the session ID generated for this activity. The Diameter session ID separator (';') will
be inserted between the generated session ID and the optional component.CreateActivityException
- if the RA could not create the activity for any reasonCreditControlAnswer eventCreditControlRequest(CreditControlRequest ccr) throws SendException
See the note regarding synchronous requests in the org.jainslee.resources.diameter.gx
package docs.
ccr
- the CreditControlRequest to sendSendException
CreditControlAnswer initialCreditControlRequest(CreditControlRequest ccr) throws SendException
org.jainslee.resources.diameter.gx.DiameterGxMessageFactory#createGxCreditControlRequest()
.
See the note regarding synchronous requests in the org.jainslee.resources.diameter.gx
package docs.
ccr
- the CreditControlRequest to sendSendException
CreditControlAnswer updateCreditControlRequest(CreditControlRequest ccr) throws SendException
See the note regarding synchronous requests in the org.jainslee.resources.diameter.gx
package docs.
ccr
- the CreditControlRequest to sendSendException
CreditControlAnswer terminationCreditControlRequest(CreditControlRequest ccr) throws SendException
See the note regarding synchronous requests in the org.jainslee.resources.diameter.gx
package docs.
ccr
- the CreditControlRequest to sendSendException
DiameterGxMessageFactory getDiameterGxMessageFactory()
byte[] marshalGxCreditControlRequest(CreditControlRequest ccr)
ccr
- the Credit-Control-Request to marshalbyte[] marshalGxCreditControlAnswer(CreditControlAnswer cca)
cca
- the Credit-Control-Answer to marshalCreditControlRequest unmarshalGxCreditControlRequest(byte[] b) throws DecodeException, AvpNotAllowedException
b
- the byte array to unmarshalDecodeException
AvpNotAllowedException
CreditControlAnswer unmarshalGxCreditControlAnswer(byte[] b) throws DecodeException, AvpNotAllowedException
b
- the byte array to unmarshalDecodeException
AvpNotAllowedException