Class OsiApi

java.lang.Object
org.spdx.crossref.OsiApi

public class OsiApi
extends Object
Singleton class that manages the OSI API to fetch license information
Author:
Gary O'Neall
  • Field Details

  • Method Details

    • getInstance

      public static OsiApi getInstance()
    • isOsiUrl

      public static boolean isOsiUrl​(String url)
    • isApiAvailable

      public boolean isApiAvailable()
      Returns:
      true if the API is available for queries
    • setCrossRefDetails

      public void setCrossRefDetails​(String url, org.spdx.library.model.license.SpdxListedLicense license, org.spdx.library.model.license.CrossRef crossRef) throws org.spdx.library.InvalidSPDXAnalysisException
      Sets the cross reference details for the cross ref givein the URL and license
      Parameters:
      url - URL reference to the OSI website
      license - SPDX license containing the crossRef
      crossRef - crossRef who's details are to be filled in
      Throws:
      org.spdx.library.InvalidSPDXAnalysisException