It looks like this class was introduced in the version 4.1 of httpclient
. Try to use version 4.1 or higher:
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId>
<version>4.2.5</version>
</dependency>