List of usage examples for javax.servlet.http HttpServletRequestWrapper getServerName
public String getServerName()
From source file:com.idega.block.rss.business.RSSAbstractProducer.java
/** * // www . j a v a2 s.c o m * @param URI * @param rssRequest * @return the full URL with the http protocol, servername and port with the URI suffixed */ public String getServerURLWithURI(String URI, RSSRequest rssRequest) { HttpServletRequestWrapper wrapped = rssRequest.getRequestWrapped(); return "http://" + wrapped.getServerName() + ":" + wrapped.getServerPort() + URI; }