Shows how to customize the way how the underlying network socket are managed by the HTTP component; the specific
sample is about how to trust self-signed SSL certificates and also empowers connection management.
HTTP connections make use of a java.net.Socket object internally to handle transmission of data across the wire.
However they rely on the SchemeSocketFactory interface to create, initialize and connect sockets. This enables the
users of HttpClient to provide application specific socket initialization code at runtime. PlainSocketFactory is the
default factory for creating and initializing plain (unencrypted) sockets.
More
information.