Code example for PlainSocketFactory

 * @since 4.0 
public class DefaultClientConnectionOperator 
    implements ClientConnectionOperator {
    private static final PlainSocketFactory staticPlainSocketFactory = new PlainSocketFactory();
    /** The scheme registry for looking up socket factories. */ 
    protected SchemeRegistry schemeRegistry;
     * Creates a new client connection operator for the given scheme registry. 
     * @param schemes   the scheme registry 
    public DefaultClientConnectionOperator(SchemeRegistry schemes) {
        if (schemes == null) {
            throw new IllegalArgumentException
                ("Scheme registry must not be null."); 
Contextual code suggestions in your IDE  Get Codota for Java