Unfortunately this is wrong. The toString method called is the DynamicURI object one not the link object one. So what I did is very special and wanted to have your point of view.
I finally found a quite elegant solution which is :
override JetspeedProfilerService and its method makeDynamicURI() override getRoot method from BaseJetspeedLink make both these classes use my RelativeURI class which extends DynamicURI and overrides everything to delegate to super class and overrides the toString method to get rid of server name, port and scheme....
Agreed :)
But the very best way to do this would have been a patch to turbine in order to have the DynamicURI beeing abstract and have a concrete implementation configurable.... This would allow to have an abstract generateURI method which everyone could implement to have its own behaviour...
Turbine 2.3 has already changed how URI are built to something called TurbineURI that can output either type of URIs. If you're willing to convert all of J1 to this new API and update our dependency to Turbine 2.3 or 2.4, be our guest. Your patches are welcome :)
-- Raphaël Luta - [EMAIL PROTECTED] Apache Portals - Enterprise Portal in Java http://portals.apache.org/
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]