Interface ITestCatalogFetcher

All Known Implementing Classes:
TestCatalogFetcher

public interface ITestCatalogFetcher
Fetches the raw JSON content of a test catalog for a given stream.

Two fetch modes are provided:

  • Method Summary

    Modifier and Type
    Method
    Description
    Fetches the test catalog for the given stream and returns it as a JSON string.
    void
    streamTestCatalog(IStream stream, OutputStream outputStream)
    Fetches the test catalog for the given stream and writes the raw JSON bytes directly to outputStream without buffering the full body in memory.
  • Method Details

    • streamTestCatalog

      void streamTestCatalog(IStream stream, OutputStream outputStream) throws InternalServletException
      Fetches the test catalog for the given stream and writes the raw JSON bytes directly to outputStream without buffering the full body in memory.
      Parameters:
      stream - the stream whose test catalog URL and optional Maven credentials are used to retrieve the catalog.
      outputStream - the stream to write catalog bytes into.
      Throws:
      InternalServletException - if the catalog cannot be fetched, the response status is not 200, the body exceeds the size limit, the content type is invalid, or credentials cannot be resolved.
    • fetchTestCatalog

      String fetchTestCatalog(IStream stream) throws InternalServletException
      Fetches the test catalog for the given stream and returns it as a JSON string.
      Parameters:
      stream - the stream whose test catalog URL and optional Maven credentials are used to retrieve the catalog.
      Returns:
      the raw JSON body of the test catalog, or null if the stream has no test catalog URL configured.
      Throws:
      InternalServletException - if the catalog cannot be fetched, the response status is not 200, the body exceeds the size limit, or the credentials cannot be resolved.