public void setSocketFactory(ISocketFactory socketFactory) {
        endRequest();
        if (socketFactory == this.socketFactory)
            return;
        try {
            close();
        } catch (IOException e) {
            // ignore?
        }
        this.socketFactory = socketFactory;
    }
public void setSocketFactory(ISocketFactory socketFactory) {
        endRequest();
        if (socketFactory == this.socketFactory)
            return;
        try {
            close();
        } catch (IOException e) {
            
        }
        this.socketFactory = socketFactory;
    }
public void setSocketFactory ( ISocketFactory socketFactory ) { endRequest ( ) ; if ( socketFactory == this . socketFactory ) return ; try { close ( ) ; } catch ( IOException e ) { // ignore? } this . socketFactory = socketFactory ; }
Sets the factory this connection uses to create sockets. If the given
socket factory is <code>null</code> the default socket is used.

@param socketFactory the factory this connection uses to create
sockets
Sets the factory this connection uses to create sockets . If the given socket factory is <code > null< / code > the default socket is used .