Class RepositoryLocation

  • All Implemented Interfaces:
    KeyedLocation, org.commonjava.maven.galley.model.Location, org.commonjava.maven.galley.transport.htcli.model.HttpLocation

    public class RepositoryLocation
    extends Object
    implements org.commonjava.maven.galley.transport.htcli.model.HttpLocation, KeyedLocation
    KeyedLocation implementation that represents a RemoteRepository Indy store, and bridges the handling of RemoteRepository attributes such as the various timeout types (not-found-cache, connection, and cache timeouts) to expose them via the Location API.
    • Constructor Detail

      • RepositoryLocation

        public RepositoryLocation​(org.commonjava.indy.model.core.RemoteRepository repository)
    • Method Detail

      • allowsPublishing

        public boolean allowsPublishing()
        Specified by:
        allowsPublishing in interface org.commonjava.maven.galley.model.Location
      • allowsStoring

        public boolean allowsStoring()
        Specified by:
        allowsStoring in interface org.commonjava.maven.galley.model.Location
      • allowsSnapshots

        public boolean allowsSnapshots()
        Specified by:
        allowsSnapshots in interface org.commonjava.maven.galley.model.Location
      • allowsReleases

        public boolean allowsReleases()
        Specified by:
        allowsReleases in interface org.commonjava.maven.galley.model.Location
      • allowsDeletion

        public boolean allowsDeletion()
        Specified by:
        allowsDeletion in interface org.commonjava.maven.galley.model.Location
      • getUri

        public String getUri()
        Specified by:
        getUri in interface org.commonjava.maven.galley.model.Location
      • getAttributes

        public Map<String,​Object> getAttributes()
        Specified by:
        getAttributes in interface org.commonjava.maven.galley.model.Location
      • getAttribute

        public <T> T getAttribute​(String key,
                                  Class<T> type)
        Specified by:
        getAttribute in interface org.commonjava.maven.galley.model.Location
      • getAttribute

        public <T> T getAttribute​(String key,
                                  Class<T> type,
                                  T defaultValue)
        Specified by:
        getAttribute in interface org.commonjava.maven.galley.model.Location
      • removeAttribute

        public Object removeAttribute​(String key)
        Specified by:
        removeAttribute in interface org.commonjava.maven.galley.model.Location
      • setAttribute

        public Object setAttribute​(String key,
                                   Object value)
        Specified by:
        setAttribute in interface org.commonjava.maven.galley.model.Location
      • getKeyCertPem

        public String getKeyCertPem()
        Specified by:
        getKeyCertPem in interface org.commonjava.maven.galley.transport.htcli.model.HttpLocation
      • getUser

        public String getUser()
        Specified by:
        getUser in interface org.commonjava.maven.galley.transport.htcli.model.HttpLocation
      • getHost

        public String getHost()
        Specified by:
        getHost in interface org.commonjava.maven.galley.transport.htcli.model.HttpLocation
      • getPort

        public int getPort()
        Specified by:
        getPort in interface org.commonjava.maven.galley.transport.htcli.model.HttpLocation
      • getServerCertPem

        public String getServerCertPem()
        Specified by:
        getServerCertPem in interface org.commonjava.maven.galley.transport.htcli.model.HttpLocation
      • getTrustType

        public org.commonjava.maven.galley.transport.htcli.model.LocationTrustType getTrustType()
        Specified by:
        getTrustType in interface org.commonjava.maven.galley.transport.htcli.model.HttpLocation
      • getProxyHost

        public String getProxyHost()
        Specified by:
        getProxyHost in interface org.commonjava.maven.galley.transport.htcli.model.HttpLocation
      • getProxyPort

        public int getProxyPort()
        Specified by:
        getProxyPort in interface org.commonjava.maven.galley.transport.htcli.model.HttpLocation
      • isIgnoreHostnameVerification

        public boolean isIgnoreHostnameVerification()
        Specified by:
        isIgnoreHostnameVerification in interface org.commonjava.maven.galley.transport.htcli.model.HttpLocation
      • getProxyUser

        public String getProxyUser()
        Specified by:
        getProxyUser in interface org.commonjava.maven.galley.transport.htcli.model.HttpLocation
      • getKey

        public org.commonjava.indy.model.core.StoreKey getKey()
        Specified by:
        getKey in interface KeyedLocation
      • allowsDownloading

        public boolean allowsDownloading()
        Specified by:
        allowsDownloading in interface org.commonjava.maven.galley.model.Location
      • getName

        public String getName()
        Specified by:
        getName in interface org.commonjava.maven.galley.model.Location
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface org.commonjava.maven.galley.model.Location
        Overrides:
        hashCode in class Object
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface org.commonjava.maven.galley.model.Location
        Overrides:
        equals in class Object