Interface DiameterGxMessageFactory

  • All Superinterfaces:
    CreditControlMessageFactory, MessageFactory

    public interface DiameterGxMessageFactory
    extends MessageFactory
    Used by applications to create Diameter Gx request messages. Gx answer messages can be created using the org.jainslee.resources.diameter.gx.GxServerSessionActivity#createGxCreditControlAnswer() method.
    • Method Detail

      • createGxCreditControlRequest

        CreditControlRequest createGxCreditControlRequest()
        Create a Gx CreditControlRequest instance, populating it with the internal AVPs not known or needed by the application.
        Returns:
        a new CreditControlRequest
      • createGxCreditControlRequest

        CreditControlRequest createGxCreditControlRequest​(String sessionId)
        Create a Gx CreditControlRequest instance, populating it with the internal AVPs not known or needed by the application. Use the session ID provided to find the Diameter session. This should be used when the requests are being made synchronously and there is no GxClientSessionActivity available.
        Parameters:
        sessionId - the Session-Id AVP returned in the Answer to a previous sync call
        Returns:
        a new CreditControlRequest
        Throws:
        IllegalArgumentException - if sessionId is not a SessionID AVP
      • createGxCreditControlAnswer

        CreditControlAnswer createGxCreditControlAnswer()
        Create a Gx CreditControlAnswer instance.
        Returns:
        a new CreditControlAnswer