[Beta] Implement own HTTP client for online mode checks, instead of asynchttpclient

This commit is contained in:
md_5
2013-07-05 09:29:28 +10:00
parent c0d581d41f
commit be29799f5a
8 changed files with 69 additions and 59 deletions

View File

@@ -2,7 +2,6 @@ package net.md_5.bungee.api;
import net.md_5.bungee.api.plugin.PluginManager;
import com.google.common.base.Preconditions;
import com.ning.http.client.AsyncHttpClient;
import java.io.File;
import java.net.InetSocketAddress;
import java.util.Collection;
@@ -218,15 +217,6 @@ public abstract class ProxyServer
*/
public abstract TaskScheduler getScheduler();
/**
* Gets the the web client used by this proxy to facilitate making web
* requests. Care should be taken to ensure that all operations are non
* blocking where applicable.
*
* @return the server's {@link AsyncHttpClient} instance
*/
public abstract AsyncHttpClient getHttpClient();
/**
* Get the current number of connected users. The default implementation is
* more efficient than {@link #getPlayers()} as it does not take a lock or