Package org.dspace.identifier.ezid
Class EZIDResponse
java.lang.Object
org.dspace.identifier.ezid.EZIDResponse
Decoded response data evoked by a request made to EZID.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionLook up the value of a given response datum.Get the EZID request status.Value associated with the EZID status (identifier, error text, etc.).intgetKeys()Expose the available keys.booleanDid the EZID request succeed?
-
Constructor Details
-
EZIDResponse
- Throws:
IdentifierException
-
-
Method Details
-
isSuccess
public boolean isSuccess()Did the EZID request succeed?- Returns:
- returned status was success.
-
getEZIDStatus
Get the EZID request status.- Returns:
- should be "success" or "error".
-
getEZIDStatusValue
Value associated with the EZID status (identifier, error text, etc.).- Returns:
- EZID status value
-
getKeys
Expose the available keys.- Returns:
- all keys found in the response.
-
get
Look up the value of a given response datum.- Parameters:
key- the datum to look up.- Returns:
- the value of
key, or null ifkeyis undefined.
-
getHttpStatusCode
public int getHttpStatusCode()- Returns:
- status of the HTTP request.
-
getHttpReasonPhrase
- Returns:
- reason for status of the HTTP request.
-