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."); 
Stop searching for code, let great code find you!  Add Codota to your java IDE