It's all about the answers!

Ask a question

How to get repository/server URL using RTC server side API?


Andrew Ciaz (5922) | asked Dec 06 '19, 1:55 a.m.

 Hi all,

I want to fetch server/repository URL using server side Java API, I tried below code but it not works:

repositoryItemService = getService(IRepositoryItemService.class);
IRepositoryRoot root = repositoryItemService.getRepositoryRoot();
System.out.println("Repository URL: "+root.getName());


Accepted answer


permanent link
Ralph Schoon (61.8k33643) | answered Dec 06 '19, 10:20 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

com.ibm.team.repository.service.AbstractService.getPublicRepositoryURL()

Andrew Ciaz selected this answer as the correct answer

Comments
Andrew Ciaz commented Dec 07 '19, 4:24 a.m.

@Ralph Schoon thanks for your answer 

Your answer


Register or to post your answer.