how can I add authentication filter\header to
com.sun.jersey.api.client.Client
?
I'm using jersey-bundle-1.18.2
i saw two posts:
1) post:
client.addFilter(new HTTPBasicAuthFilter(user, password));
2) post:
client.setUsernamePassword("testClient", "secret");
but non of them apply to the above Client
class.
These method don't exist in this type.