1 31 32 package org.apache.commons.httpclient.protocol; 33 34 import java.io.IOException ; 35 import java.net.InetAddress ; 36 import java.net.Socket ; 37 import java.net.UnknownHostException ; 38 39 55 public interface ProtocolSocketFactory { 56 57 71 Socket createSocket( 72 String host, 73 int port, 74 InetAddress clientHost, 75 int clientPort 76 ) throws IOException , UnknownHostException ; 77 78 90 Socket createSocket( 91 String host, 92 int port 93 ) throws IOException , UnknownHostException ; 94 95 } 96 | Popular Tags |