A simple class for configuring a SOCKS proxy to use the Proximo add-on in Heroku.
Add the Proximo add-on to your Heroku app
heroku addons:add proximo
Maven
<dependency>
<groupId>com.palominolabs.heroku</groupId>
<artifactId>proximo-socks</artifactId>
<version>1.0.0</version>
</dependency>
Gradle
compile 'com.palominolabs.heroku:proximo-socks:1.0.0'
import com.palominolabs.heroku.Proximo
…
Proximo.setup()
That's it. All requests should now be proxied through Proximo.