extracts the httphost from the httpurl parameter . concode_field_sep String LOCAL_IP concode_elem_sep UrlValidator URL_VALIDATOR concode_elem_sep String LOCAL_HOST concode_elem_sep Logger LOG concode_field_sep boolean hasPort concode_elem_sep String getHostName concode_elem_sep boolean isHostName concode_elem_sep boolean isLocalhost concode_elem_sep boolean isURLValid
HttpHost function ( String arg0 ) { URL loc0 = new URL ( arg0 ) ; HttpHost loc1 ; if ( URLUtils . hasPort ( arg0 ) ) { loc1 = new HttpHost ( loc0 . getHost ( ) , loc0 . getPort ( ) ) ; } else { loc1 = new HttpHost ( loc0 . getHost ( ) ) ; } return loc1 ; }