@staticmethod
def get_full_url(url, use_ssl, host):
    """Return the full URL to a DCOR resource

        Parameters
        ----------
        url: str
            Full URL or resource identifier; valid values are

            - https://dcor.mpl.mpg.de/api/3/action/dcserv?id=caab96f6-
              df12-4299-aa2e-089e390aafd5'
            - dcor.mpl.mpg.de/api/3/action/dcserv?id=caab96f6-df12-
              4299-aa2e-089e390aafd5
            - caab96f6-df12-4299-aa2e-089e390aafd5
        use_ssl: bool
            Set this to False to disable SSL (should only be used for
            testing). Defaults to None (does not force SSL if the URL
            starts with "http://").
        host: str
            Use this host if it is not specified in `url`
        """
    if use_ssl is None:
        if url.startswith('http://'):
            web = 'http'
        else:
            web = 'https'
    elif use_ssl:
        web = 'https'
    else:
        web = 'http'
    if url.count('://'):
        base = url.split('://', 1)[1]
    else:
        base = url
    if base.count('/'):
        host, api = base.split('/', 1)
    else:
        api = 'api/3/action/dcserv?id=' + base
    new_url = '{}://{}/{}'.format(web, host, api)
    return new_url
