Class EZIDRequestFactory


  • public class EZIDRequestFactory
    extends Object
    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 Detail

      • EZIDRequestFactory

        public EZIDRequestFactory()
    • Method Detail

      • 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

        public void setEZID_SCHEME​(String aEZID_SCHEME)
        Parameters:
        aEZID_SCHEME - the EZID URL scheme to set.
      • setEZID_HOST

        public void setEZID_HOST​(String aEZID_HOST)
        Parameters:
        aEZID_HOST - the EZID host to set.
      • setEZID_PATH

        public void setEZID_PATH​(String aEZID_PATH)
        Parameters:
        aEZID_PATH - the local path to the EZID API.
      • getEzidScheme

        public String getEzidScheme()
      • getEzidHost

        public String getEzidHost()
      • getEzidPath

        public String getEzidPath()