Class ACR


public final class ACR extends Request
Diameter Accounting-Request (ACR) message.
Author:
Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved.
  • Constructor Details

    • ACR

      public ACR(ByteBuffer bb, com.bea.wcp.diameter.transport.Connection c)
    • ACR

      public ACR(Node node, int appId, String sessionId)
  • Method Details

    • validate

      public void validate() throws MessageException
      Description copied from class: Message
      Validates the message by validating each message AVP. If any AVP values are cached as message fields, they are cleared first. This supports validation of both received and originated messages.
      Overrides:
      validate in class Message
      Throws:
      MessageException - if the message was invalid
    • validateAvp

      protected void validateAvp(Avp avp) throws AvpException
      Overrides:
      validateAvp in class Message
      Throws:
      AvpException
    • setAccountingRecordType

      public void setAccountingRecordType(RecordType type)
      Sets the Accounting-Record-Type AVP value for this request. Possible values are EVENT for event-based accounting, and START/INTERIM/STOP for session-based accounting. This AVP is required for all accounting requests.
      Parameters:
      type - the request accounting record type
    • getAccountingRecordType

      public RecordType getAccountingRecordType()
      Returns the Accounting-Record-Type AVP value for this request.
    • setAccountingRecordNumber

      public void setAccountingRecordNumber(int n)
      Sets the Accounting-Record-Number AVP value for this request. This AVP is required for all accounting requests.
      Parameters:
      n - the request accounting record number
    • getAccountingRecordNumber

      public int getAccountingRecordNumber()
      Returns the Accounting-Record-Number AVP value for this request.
    • setAcctInterimInterval

      public void setAcctInterimInterval(int interval)
      Sets the Acct-Interim-Interval AVP value for this request.
      Parameters:
      interval - the request accounting interim interval
    • getAcctInterimInterval

      public int getAcctInterimInterval()
      Returns the Acct-Interim-Interval AVP value for this request.