authenticator.setPassword(this.password);
authenticator.setEncoding(this.encoding);
r.setAuthenticator(authenticator);
//
final SocketFactoryImpl socketFactory = new SocketFactoryImpl();
socketFactory.setKeepAlive(true);
socketFactory.setTcpNoDelay(false);
socketFactory.setReceiveBufferSize(this.socketReceiveBufferSize);
r.setSocketFactory(socketFactory);
return r;
}