public class SHERPAResponse extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
SHERPAResponse.SHERPAFormat |
| Constructor and Description |
|---|
SHERPAResponse(InputStream input,
SHERPAResponse.SHERPAFormat format)
Parse SHERPA v2 API for a given format
|
SHERPAResponse(String message)
Create new response object to be handled as an error
|
| Modifier and Type | Method and Description |
|---|---|
List<SHERPAJournal> |
getJournals() |
String |
getMessage() |
SHERPASystemMetadata |
getMetadata() |
boolean |
isError() |
void |
setMessage(String message) |
public SHERPAResponse(InputStream input, SHERPAResponse.SHERPAFormat format) throws IOException
input - - input stream from the HTTP response contentformat - - requested formatIOExceptionpublic SHERPAResponse(String message)
message - - the message to render in logs or error pagespublic boolean isError()
public String getMessage()
public void setMessage(String message)
public List<SHERPAJournal> getJournals()
public SHERPASystemMetadata getMetadata()
Copyright © 2022 LYRASIS. All rights reserved.