public String getTargetSite ( ) { try { String urlstr = wbRequest . getRequestUrl ( ) ; if ( urlstr == null ) return null ; URL url = new URL ( urlstr ) ; return url . getHost ( ) ; } catch ( MalformedURLException ex ) { return null ; } }
return hostname portion of request URL .