@Service(value="remoteRepositoriesService#rest") public class DefaultRemoteRepositoriesService extends AbstractRestService implements RemoteRepositoriesService
Modifier and Type | Field and Description |
---|---|
(package private) int |
checkReadTimeout |
(package private) int |
checkTimeout |
private NetworkProxyAdmin |
networkProxyAdmin |
private RemoteRepositoryAdmin |
remoteRepositoryAdmin |
private WagonFactory |
wagonFactory |
archivaAdministration, config, httpServletRequest, httpServletResponse, log, managedRepositoryAdmin, proxyConnectorAdmin, repositoryContentFactory, repositorySessionFactory, repositoryTaskScheduler, userRepositories
Constructor and Description |
---|
DefaultRemoteRepositoriesService() |
Modifier and Type | Method and Description |
---|---|
Boolean |
addRemoteRepository(RemoteRepository remoteRepository) |
Boolean |
checkRemoteConnectivity(String repositoryId) |
Boolean |
deleteRemoteRepository(String repositoryId) |
int |
getCheckReadTimeout() |
int |
getCheckTimeout() |
List<RemoteRepository> |
getRemoteRepositories() |
RemoteRepository |
getRemoteRepository(String repositoryId) |
void |
setCheckReadTimeout(int checkReadTimeout) |
void |
setCheckTimeout(int checkTimeout) |
Boolean |
updateRemoteRepository(RemoteRepository remoteRepository) |
buildArtifacts, doScanRepository, getArtifactUrl, getArtifactUrl, getAuditInformation, getAuditListeners, getBaseUrl, getBeansOfType, getModelMapper, getObservableRepos, getPrincipal, setAuditListeners, triggerAuditEvent
@Inject private RemoteRepositoryAdmin remoteRepositoryAdmin
@Inject private WagonFactory wagonFactory
@Inject private NetworkProxyAdmin networkProxyAdmin
int checkReadTimeout
int checkTimeout
public DefaultRemoteRepositoriesService()
public List<RemoteRepository> getRemoteRepositories() throws ArchivaRestServiceException
getRemoteRepositories
in interface RemoteRepositoriesService
ArchivaRestServiceException
public RemoteRepository getRemoteRepository(String repositoryId) throws ArchivaRestServiceException
getRemoteRepository
in interface RemoteRepositoriesService
ArchivaRestServiceException
public Boolean deleteRemoteRepository(String repositoryId) throws ArchivaRestServiceException
deleteRemoteRepository
in interface RemoteRepositoriesService
ArchivaRestServiceException
public Boolean addRemoteRepository(RemoteRepository remoteRepository) throws ArchivaRestServiceException
addRemoteRepository
in interface RemoteRepositoriesService
ArchivaRestServiceException
public Boolean updateRemoteRepository(RemoteRepository remoteRepository) throws ArchivaRestServiceException
updateRemoteRepository
in interface RemoteRepositoriesService
ArchivaRestServiceException
public Boolean checkRemoteConnectivity(String repositoryId) throws ArchivaRestServiceException
checkRemoteConnectivity
in interface RemoteRepositoriesService
ArchivaRestServiceException
public int getCheckReadTimeout()
public void setCheckReadTimeout(int checkReadTimeout)
public int getCheckTimeout()
public void setCheckTimeout(int checkTimeout)
Copyright © 2006–2022 The Apache Software Foundation. All rights reserved.