removed unused utility method

pull/210/head
Justin Richer 2012-08-23 13:49:29 -04:00
parent 6cb0269629
commit ba24ca1f60
1 changed files with 1 additions and 20 deletions

View File

@ -23,25 +23,6 @@ import javax.servlet.http.HttpServletRequest;
*/
public class Utility {
/**
* Returns the base URL from a HttpServletRequest
*
* @param request
* @return
*/
public static String findBaseUrl(HttpServletRequest request) {
String issuer = String.format("%s://%s%s", request.getScheme(),
request.getServerName(), request.getContextPath());
if ((request.getScheme().equals("http") && request.getServerPort() != 80)
|| (request.getScheme().equals("https") && request
.getServerPort() != 443)) {
// nonstandard port, need to include it
issuer = String.format("%s://%s:%d%s", request.getScheme(),
request.getServerName(), request.getServerPort(),
request.getContextPath());
}
return issuer;
}
// currently empty
}