Class CCR


public class CCR extends Request
Diameter Credit-Control-Request. Provides validation for mandatory Service-Context-Id, CC-Request-Type, and CC-Request-Number AVPs.
Author:
Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved.
  • Constructor Details

    • CCR

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

      public CCR(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
    • setServiceContextId

      public void setServiceContextId(String id)
    • getServiceContextId

      public String getServiceContextId()
    • setCCRequestType

      public void setCCRequestType(RequestType type)
    • getCCRequestType

      public RequestType getCCRequestType()
    • setCCRequestNumber

      public void setCCRequestNumber(int n)
    • getCCRequestNumber

      public int getCCRequestNumber()