Skip to content
Snippets Groups Projects
Commit 4122b584 authored by MIchael Nguyen's avatar MIchael Nguyen
Browse files

updating client to work

parent eb4a06fb
No related branches found
No related tags found
1 merge request!6Trusted ibm
......@@ -3,6 +3,7 @@ package org.opengroup.osdu.util;
import com.sun.jersey.api.client.Client;
import com.sun.jersey.api.client.ClientResponse;
import com.sun.jersey.api.client.WebResource;
import com.sun.jersey.api.client.filter.HTTPBasicAuthFilter;
import lombok.ToString;
import lombok.extern.java.Log;
......@@ -50,7 +51,9 @@ public abstract class HTTPClient {
HttpsURLConnection.setDefaultSSLSocketFactory(sc.getSocketFactory());
} catch (Exception ignored) {
}
return Client.create();
Client client = Client.create();
client.addFilter(new HTTPBasicAuthFilter("opendes@byoc.local", "123"));
return client ;
}
public ClientResponse send(String httpMethod, String url, String payLoad, Map<String, String> headers, String token) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment