public String toHostString(){
  CharArrayBuffer buffer=new CharArrayBuffer(32);
  buffer.append(this.hostname);
  if (this.port != -1) {
    buffer.append(':');
    buffer.append(Integer.toString(this.port));
  }
  return buffer.toString();
}

public String toHostString ( ) { CharArrayBuffer buffer = new CharArrayBuffer ( 32 ) ; buffer . append ( this . hostname ) ; if ( this . port != - 1 ) { buffer . append ( ':' ) ; buffer . append ( Integer . toString ( this . port ) ) ; } return buffer . toString ( ) ; }
obtains the host string , without scheme prefix .
