Class RepositoryData

java.lang.Object
com.bea.wcp.diameter.sh.RepositoryData

public class RepositoryData extends Object
Represents Sh repository data. Can be used to parse repository data from a Document object as well as create new repository data.
Author:
Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved.
  • Constructor Details

    • RepositoryData

      public RepositoryData(String serviceIndication)
      Creates a new empty RepositoryData for the specified service indication. The RepositoryData will have a sequence number of 0 and contain no service data.
      Parameters:
      serviceIndication - the service indication string
    • RepositoryData

      public RepositoryData(Document doc)
      Parse RepositoryData from the specified profile document.
      Parameters:
      doc - the profile XML document
  • Method Details

    • getDocument

      public Document getDocument()
      Returns this repository data as an XML Document.
      Returns:
      the repository data document
    • getServiceIndication

      public String getServiceIndication()
      Returns the service indication for this repository data.
      Returns:
      the service indication
    • getSequenceNumber

      public int getSequenceNumber()
      Returns the sequence number for this repository data.
      Returns:
      the sequence number
    • getServiceData

      public Element getServiceData()
      Returns the Element representing this repository data's service data.
      Returns:
      the service data
    • setServiceData

      public void setServiceData(Element newData)
      Sets the service data for this repository data. The sequence number will be automatically incremented if the service data has been updated.
      Parameters:
      newData - the new service data
    • removeServiceData

      public void removeServiceData()
      Removes the service data for this repository data. This can be used to remove existing repository data, as the data will be removed on the HSS if it receives a PUR with no service data. The sequence number is automatically incremented.
    • toString

      public String toString()
      Overrides:
      toString in class Object