List of usage examples for javax.servlet.http HttpServletRequestWrapper getServerPort
public int getServerPort()
From source file:com.idega.block.rss.business.RSSAbstractProducer.java
/** * /*from w ww .java2 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; }