public void close() throws IOException {
  if (connection != null) {
    connection.disconnect();
  }
}

public void close ( ) throws IOException { if ( connection != null ) { connection . disconnect ( ) ; } }
close the http connection
