Package org.dspace.app.sherpa.v2
Class SHERPAPublisherResponse
java.lang.Object
org.dspace.app.sherpa.v2.SHERPAPublisherResponse
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:
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionParse SHERPA v2 API for a given formatSHERPAPublisherResponse(String message) Create new response object to be handled as an error -
Method Summary
-
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 contentformat- - requested format- Throws:
IOException
-
SHERPAPublisherResponse
Create new response object to be handled as an error- Parameters:
message- - the message to render in logs or error pages
-
-
Method Details
-
isError
public boolean isError() -
getMessage
-
setMessage
-
getMetadata
-
getPublishers
-