Interface PolicyResponse

All Superinterfaces:
Response<Policy>, Serializable
All Known Subinterfaces:
PolicySessionResponse, SpendingLimitReportResponse, SubscribeNotificationResponse

public interface PolicyResponse extends Response<Policy>
Class which encapsulates the processing status for a PolicyRequest
  • Method Details

    • getRequestType

      <T> T getRequestType()
      Fetches the type of request processed for the response (eg. INITIAL)
      Returns:
      RequestType
    • getStatus

      Fetches the Policy Response Status (eg. SUCCESS)
      Returns:
      the status indicating a SUCCESS or FAILURE
    • setStatus

      void setStatus(PolicyResponse.Status status)
      sets the status - meant for Sy Post OCS extension
    • getCustomerId

      String getCustomerId()
      Fetches the customer id (eg. 560001)
      Returns:
      customer id
    • getReasonCodes

      Fetches the reason codes (eg. [INVALID_PREFERENCES, UNKNOWN_SESSION_ID])

      Diameter AVP Name : Result-Code

      Returns:
      the reasons supporting the response status. There could be more than one reasons supporting the conditions or events occurred during the request processing. Eg.
      • SYSTEM_ERR (System error.)
    • setReasonCodes

      void setReasonCodes(Collection<PolicyResponse.ReasonCode> reasonCodes)
      sets the Reason Codes - meant for Sy Post OCS extension