public static String getDomain ( HttpServletRequest request ) { if ( request == null ) { return null ; } return UrlUtils . resolveDomain ( request . getServerName ( ) ) ; }
Resolves domain name from given URL