Hi Waruna, You can try getLocalHostname() and getMgtHostName() in org.wso2.carbon.utils.NetworkUtils.
On Tue, Nov 10, 2015 at 11:07 PM, Waruna Jayaweera <[email protected]> wrote: > Hi Kalpa, > Did you able to find a solution for $subject. I am also looking for an > approach > to get the host name > > Thanks, > Waruna > > > > On Wed, Feb 11, 2015 at 6:59 AM, Kalpa Welivitigoda <[email protected]> > wrote: > >> Hi, >> >> I want to get the $subject. >> >> An option to get the http port would be to use >> "CarbonUtils.getPortFromServerConfig("Ports.Offset") + 1". For https port, >> we can use the same method passing the default https port. Is there a >> better way? >> >> What would be the preferred approach to get the host name? >> >> -- >> Best Regards, >> >> Kalpa Welivitigoda >> Software Engineer, WSO2 Inc. http://wso2.com >> Email: [email protected] >> Mobile: +94776509215 >> >> _______________________________________________ >> Dev mailing list >> [email protected] >> http://wso2.org/cgi-bin/mailman/listinfo/dev >> >> > > > -- > Regards, > > Waruna Lakshitha Jayaweera > Software Engineer > WSO2 Inc; http://wso2.com > phone: +94713255198 > -- Best Regards, Kalpa Welivitigoda Software Engineer, WSO2 Inc. http://wso2.com Email: [email protected] Mobile: +94776509215
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
