Skip to Content
0
Former Member
Feb 14, 2006 at 02:53 PM

URL Generation

24 Views

I'm trying to get the URL of a resource using the KM API as published below:

RID rid = RID.getRID(pNamespace);

IURLGeneratorService ug =

(IURLGeneratorService)ResourceFactory

.getInstance()

.getServiceFactory()

.getService(IServiceTypesConst.URLGENERATOR_SERVICE);

IUriReference uriRef = ug.getResourcePageUri(PathKey.NAVIGATION_PAGE, rid, null);

IHierarchicalUri uri = ug.createAbsoluteUri(uriRef);

uriString = uri.toExternalForm();

I'm getting the following result:

http://<%hostname%>/irj/go/km/navigation/documents/Test

The hostname is not being resolved. Is there a setting in Portal or Visual Admin that I need to set?

Thanx,

Mahesh