Package org.dspace.identifier.ezid
Class EZIDRequestFactory
java.lang.Object
org.dspace.identifier.ezid.EZIDRequestFactory
Create configured EZID requests.
Common EZID constant properties are:
- EZID_SCHEME
- URL scheme (e.g. "https")
- EZID_HOST
- Name of the EZID API host
- EZID_PATH
- Path to the API endpoints
- Author:
- mwood
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetInstance(String authority, String username, String password) Configure an EZID request.voidsetEZID_HOST(String aEZID_HOST) voidsetEZID_PATH(String aEZID_PATH) voidsetEZID_SCHEME(String aEZID_SCHEME)
-
Constructor Details
-
EZIDRequestFactory
public EZIDRequestFactory()
-
-
Method Details
-
getInstance
public EZIDRequest getInstance(String authority, String username, String password) throws URISyntaxException Configure an EZID request.- Parameters:
authority- our DOI authority number.username- EZID user name.password-username's password.- Returns:
- a new EZID request with the given parameters
- Throws:
URISyntaxException- if host or authority is bad.
-
setEZID_SCHEME
- Parameters:
aEZID_SCHEME- the EZID URL scheme to set.
-
setEZID_HOST
- Parameters:
aEZID_HOST- the EZID host to set.
-
setEZID_PATH
- Parameters:
aEZID_PATH- the local path to the EZID API.
-
getEzidScheme
-
getEzidHost
-
getEzidPath
-