String function ( String arg0 ) { if ( arg0 == null ) { throw new IllegalArgumentException ( "srini_string" ) ; } int loc0 = arg0 . indexOf ( '.' ) ; if ( loc0 == - 1 ) { return arg0 ; } else { return arg0 . substring ( 0 , loc0 ) ; } }
turn a fully qualified domain name fqdn into a hostname . if the fqdn has multiple subparts separated by a period ' . ' , it will take the first part . otherwise it takes the entire fqdn . concode_field_sep Logger LOG concode_field_sep String ipAddressAndPortToUrlString concode_elem_sep ServerSocket createSocket concode_elem_sep String hostAndPortToUrlString concode_elem_sep int getAvailablePort concode_elem_sep String socketAddressToUrlString concode_elem_sep ServerSocket createSocketFromPorts concode_elem_sep Iterator<Integer> getPortRangeFromString concode_elem_sep URL getCorrectHostnamePort concode_elem_sep String ipAddressToUrlString