Guest User

Untitled

a guest
May 20th, 2018
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. import org.apache.http.client.CredentialsProvider;
  2. import org.apache.http.impl.client.BasicCredentialsProvider;
  3. ...
  4. @Override
  5. public void initialize() {
  6. ...
  7. CredentialsProvider credsProvider = new BasicCredentialsProvider();
  8. ...
  9. }
  10.  
  11. <dependencies>
  12. <dependency>
  13. <groupId>org.apache.httpcomponent</groupId>
  14. <artifactId>httpclient</artifactId>
  15. <scope>runtime</scope>
  16. </dependency>
  17. <dependency>
  18. <groupId>org.apache.httpcomponents</groupId>
  19. <artifactId>httpcore</artifactId>
  20. <scope>runtime</scope>
  21. </dependency>
  22. </dependencies>
  23.  
  24. <scope>runtime</scope>
  25.  
  26. <scope>compile</scope>
Add Comment
Please, Sign In to add comment