Package org.dspace.app.sherpa.v2
Class SHERPAResponse
java.lang.Object
org.dspace.app.sherpa.v2.SHERPAResponse
- All Implemented Interfaces:
Serializable
Model class for the SHERPAv2 API (JSON) response for a publication (journal) search
The structure and approached used is quite different to the simple v1 API used previously
The structure is based on journal data, which in turn contains data about publishers and policies
- Author:
- Kim Shepherd
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionCreate an empty SHERPAResponse representationSHERPAResponse(InputStream input, SHERPAResponse.SHERPAFormat format) Parse SHERPA v2 API for a given formatSHERPAResponse(String message) Create new response object to be handled as an error -
Method Summary
-
Constructor Details
-
SHERPAResponse
Parse SHERPA v2 API for a given format- Parameters:
input- - input stream from the HTTP response contentformat- - requested format- Throws:
IOException
-
SHERPAResponse
public SHERPAResponse()Create an empty SHERPAResponse representation -
SHERPAResponse
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
-
getJournals
-
getMetadata
-
getRetrievalTime
-