AnsweredAssumed Answered

url property of content and server name

Question asked by matthieugd on Jan 11, 2008

In the ContentService the url property returned is build with the getLocalName() :

HttpServletRequest req = (HttpServletRequest)MessageContext.getCurrentContext().getProperty(HTTPConstants.MC_HTTP_SERVLETREQUEST);
            String address = req.getLocalName();

which returns localhost. I know that req.getServerName() can be changed by setting an attribute (proxyname) on the "Connector" but the LocalName method is based on the IP interface. I'm under Windows XP how can I change the hostname returned by this method ?