Class SHERPAPublisherResponse

java.lang.Object
org.dspace.app.sherpa.v2.SHERPAPublisherResponse

public class SHERPAPublisherResponse extends Object
Model class for the SHERPAv2 API (JSON) response for a publisher search The structure and approached used is quite different to the simple v1 API used previously
Author:
Kim Shepherd
See Also:
  • Constructor Details

    • SHERPAPublisherResponse

      public SHERPAPublisherResponse(InputStream input, SHERPAPublisherResponse.SHERPAFormat format) throws IOException
      Parse SHERPA v2 API for a given format
      Parameters:
      input - - input stream from the HTTP response content
      format - - requested format
      Throws:
      IOException
    • SHERPAPublisherResponse

      public SHERPAPublisherResponse(String message)
      Create new response object to be handled as an error
      Parameters:
      message - - the message to render in logs or error pages
  • Method Details