Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import org.apache.http.client.CredentialsProvider;
- import org.apache.http.impl.client.BasicCredentialsProvider;
- ...
- @Override
- public void initialize() {
- ...
- CredentialsProvider credsProvider = new BasicCredentialsProvider();
- ...
- }
- <dependencies>
- <dependency>
- <groupId>org.apache.httpcomponent</groupId>
- <artifactId>httpclient</artifactId>
- <scope>runtime</scope>
- </dependency>
- <dependency>
- <groupId>org.apache.httpcomponents</groupId>
- <artifactId>httpcore</artifactId>
- <scope>runtime</scope>
- </dependency>
- </dependencies>
- <scope>runtime</scope>
- <scope>compile</scope>
Add Comment
Please, Sign In to add comment