private void setHost ( String p_host ) throws MalformedURIException { if ( p_host == null || p_host . length ( ) == 0 ) { m_host = p_host ; m_userinfo = null ; m_port = null ; n_port = - 1 ; } else if ( ! isWellFormedAddress ( p_host ) ) { throw new MalformedURIException ( "Host is not a well formed address!" ) ; } m_host = p_host ; }
Set the host for this URI . If null is passed in the userinfo field is also set to null and the port is set to - 1 .