Skip to content
This repository has been archived by the owner on Aug 11, 2020. It is now read-only.

Commit

Permalink
Add proxies URL getter
Browse files Browse the repository at this point in the history
Signed-off-by: Alin Dreghiciu <adreghiciu@gmail.com>
  • Loading branch information
adreghiciu committed Oct 30, 2012
1 parent b984063 commit 69b9df0
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ public interface ProxyRepository<T extends ProxyRepository>
extends Repository<T, ProxyRepositoryStatus>
{

String proxyUri();

T withRepoPolicy( final String policy );

T asProxyOf( String remoteUrl );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,17 @@ ProxyRepositoryStatus convertStatus( final RepositoryStatusResource status )
);
}

@Override
public String proxyUri()
{
final RepositoryResourceRemoteStorage remoteStorage = settings().getRemoteStorage();
if ( remoteStorage == null )
{
return null;
}
return remoteStorage.getRemoteStorageUrl();
}

@Override
public T withRepoPolicy( final String policy )
{
Expand Down

0 comments on commit 69b9df0

Please sign in to comment.