@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)
ProxyRegistrygetNetworkProxy in interface ProxyRegistryid - The proxy idpublic Map<RepositoryType,List<RepositoryProxyHandler>> getAllHandler()
ProxyRegistrygetAllHandler in interface ProxyRegistrypublic List<RepositoryProxyHandler> getHandler(RepositoryType type)
ProxyRegistrygetHandler in interface ProxyRegistrytype - The repository typepublic boolean hasHandler(RepositoryType type)
ProxyRegistryhasHandler in interface ProxyRegistrytype - The repository typepublic List<ProxyConnector> getProxyConnectors()
ProxyRegistrygetProxyConnectors in interface ProxyRegistrypublic Map<String,List<ProxyConnector>> getProxyConnectorAsMap()
ProxyRegistrygetProxyConnectorAsMap in interface ProxyRegistrypublic void reload()
ProxyRegistryreload in interface ProxyRegistrypublic void handle(RepositoryRegistryEvent event)
handle in interface EventHandler<RepositoryRegistryEvent>Copyright © 2006–2019 The Apache Software Foundation. All rights reserved.