Interface PolicyRequest

All Superinterfaces:
Request<Policy>, Serializable, TemporalObject
All Known Subinterfaces:
PolicySessionRequest, SpendingLimitReportRequest, SubscribeNotificationRequest

public interface PolicyRequest extends Request<Policy>
Base Interface for all types of Policy requests.
  • Method Details

    • getRequestType

      <T> T getRequestType()
      Fetches the type of the request
    • For SubscribeNotificationRequest, supported types are SUBSCRIBE invalid input: '&' UNSUBSCRIBE
    • For SpendingLimitReportRequest and PolicySessionRequest, supported types are INITIAL, UPDATE invalid input: '&' TERMINATE
    • Returns:
      RequestType
    • getUserIdentity

      String getUserIdentity()
      Fetches the external user identity associated with this request.
    • For a voice request this could be a telephone number (eg. 14081234567).

      Diameter AVP Name : Subscription-Id -> Subscription-Id-Data / Public-Identity

    • Returns:
      The user identify
    • getProductType

      String getProductType()
      Fetches the productType associated with this request (eg. VOICE)

      Diameter AVP Name : Service-Indication

      Returns:
      The product type
    • getRequestDateTime

      ZonedDateTime getRequestDateTime()
      Fetches the request time. (eg. 2013-11-01T00:01:00)
      Returns:
      The time of the request.
    • getSessionId

      String getSessionId()
      Fetches the session id associated with the SLR Request.
    • This unique session Id should be same for all INITIAL, UPDATE and TERMINATE requests for a single ongoing Sy session.
    • Eg. SESSION-001

      Diameter AVP Name : Session-Id

    • Returns:
      the sessionId
    • setTraced

      void setTraced(boolean traced)
      Set the subscriber trace flag
    • getTraced

      boolean getTraced()
      get the subscriber trace flag
      Returns:
      true if the subscriber request is to be traced or false
    • setRequestDateTime

      void setRequestDateTime(ZonedDateTime dateTime)
      Sets the request time. (eg. 2013-11-01T00:01:00) sets The time of the request - meant for Sy Pre OCS extension
    • setProductType

      void setProductType(String productType)
      Sets the productType associated with this request (eg. VOICE)

      Diameter AVP Name : Service-Indication sets The product type - meant for Sy Pre OCS extension