@Service(value="proxyRegistry#default") public class ArchivaProxyRegistry extends Object implements ProxyRegistry, EventHandler<RepositoryRegistryEvent>
Constructor and Description |
---|
ArchivaProxyRegistry() |
Modifier and Type | Method and Description |
---|---|
Map<RepositoryType,List<RepositoryProxyHandler>> |
getAllHandler()
Returns a map that contains a list of repository handlers for each repository type.
|
List<RepositoryProxyHandler> |
getHandler(RepositoryType type)
Returns the repository handler that are defined for the given repository type.
|
NetworkProxy |
getNetworkProxy(String id)
Returns the network proxy that is configured for the given id (repository id).
|
Map<String,List<ProxyConnector>> |
getProxyConnectorAsMap()
Returns a map of connector lists with the source repository id as key
|
List<ProxyConnector> |
getProxyConnectors()
Returns the list of all proxy connectors.
|
void |
handle(RepositoryRegistryEvent event) |
boolean |
hasHandler(RepositoryType type)
Returns true, if there are proxy handler registered for the given type.
|
void |
reload()
Reloads the proxies from the configuration.
|
public ArchivaProxyRegistry()
public NetworkProxy getNetworkProxy(String id)
ProxyRegistry
getNetworkProxy
in interface ProxyRegistry
id
- The proxy idpublic Map<RepositoryType,List<RepositoryProxyHandler>> getAllHandler()
ProxyRegistry
getAllHandler
in interface ProxyRegistry
public List<RepositoryProxyHandler> getHandler(RepositoryType type)
ProxyRegistry
getHandler
in interface ProxyRegistry
type
- The repository typepublic boolean hasHandler(RepositoryType type)
ProxyRegistry
hasHandler
in interface ProxyRegistry
type
- The repository typepublic List<ProxyConnector> getProxyConnectors()
ProxyRegistry
getProxyConnectors
in interface ProxyRegistry
public Map<String,List<ProxyConnector>> getProxyConnectorAsMap()
ProxyRegistry
getProxyConnectorAsMap
in interface ProxyRegistry
public void reload()
ProxyRegistry
reload
in interface ProxyRegistry
public void handle(RepositoryRegistryEvent event)
handle
in interface EventHandler<RepositoryRegistryEvent>
Copyright © 2006–2019 The Apache Software Foundation. All rights reserved.