List of usage examples for org.apache.http.conn.scheme SocketFactory SocketFactory
SocketFactory
From source file:com.favalike.http.GAEConnectionManager.java
public GAEConnectionManager() { SocketFactory no_socket_factory = new SocketFactory() { public Socket connectSocket(Socket sock, String host, int port, InetAddress localAddress, int localPort, HttpParams params) {// w ww. j a v a2 s . c o m return null; } public Socket createSocket() { return null; } public boolean isSecure(Socket s) { return false; } }; schemeRegistry = new SchemeRegistry(); schemeRegistry.register(new Scheme("http", no_socket_factory, 80)); schemeRegistry.register(new Scheme("https", no_socket_factory, 443)); }