public interface Repository
| Modifier and Type | Method and Description |
|---|---|
default java.net.URL |
createURL(Dependency dependency)
Creates a url for the given
Dependency with the getHost(). |
java.lang.String |
getHost()
The maven repository host's address.
|
default javax.net.ssl.HttpsURLConnection |
openConnection(Dependency dependency)
Opens a connection from a url generated with
createURL(Dependency). |
java.lang.String getHost()
default java.net.URL createURL(Dependency dependency) throws java.net.MalformedURLException
Dependency with the getHost().dependency - the dependency to generate the url forjava.net.MalformedURLException - if the url syntax is invaliddefault javax.net.ssl.HttpsURLConnection openConnection(Dependency dependency) throws java.io.IOException
createURL(Dependency).dependency - the dependency used to generate the urlHttpsURLConnectionjava.io.IOException - if opening connection fails