Examples of fetchFirstLine()


Examples of games.stendhal.client.update.HttpClient.fetchFirstLine()

  }

  private void checkVersion() {
    final HttpClient httpClient = new HttpClient(
        ClientGameConfiguration.get("UPDATE_VERSION_CHECK"));
    final String version = httpClient.fetchFirstLine();
    if (version != null) {
      if (Version.compare(version, stendhal.VERSION) > 0) {
        // custom title, warning icon
        JOptionPane.showMessageDialog(
            this,
View Full Code Here

Examples of games.stendhal.client.update.HttpClient.fetchFirstLine()

    if (host.indexOf(":") > -1) {
      urlHost = "[" + host + "]";
    }
    final String testServer = "http://" + urlHost + "/";
    final HttpClient httpClient = new HttpClient(testServer + "stendhal.version");
    final String version = httpClient.fetchFirstLine();
    if (version != null) {
      if (!Version.checkCompatibility(version, stendhal.VERSION)) {
        // custom title, warning icon
        JOptionPane.showMessageDialog(
            StendhalFirstScreen.get(),
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.