Summary Table

Categories Total Count
PII 0
URL 0
DNS 0
EKL 0
IP 0
PORT 0
VsID 0
CF 0
AI 0
VPD 0
PL 0
Other 0

File Content

package gov.va.vamf.scheduling.varutility.clientapi;

import com.agilex.healthcare.utility.NullChecker;
import org.w3c.dom.Document;

import javax.ws.rs.client.WebTarget;
import java.net.URI;

public class MobileHealthClientTestVersion {
private static org.apache.commons.logging.Log logger = org.apache.commons.logging.LogFactory.getLog(MobileHealthClientTestVersion.class);
private JerseyClientHandle jerseyHandle = null;

public MobileHealthClientTestVersion(URI uri, AuthenticationInfo authenticationInfo) {
jerseyHandle = new JerseyClientHandle(uri, authenticationInfo);
}

public MobileHealthClientTestVersion(String uri, AuthenticationInfo authenticationInfo) {
jerseyHandle = new JerseyClientHandle(uri, authenticationInfo);
}

public JerseyClientHandle getJerseyClientHandle() {
return jerseyHandle;
}

public javax.ws.rs.client.Client getJerseyClient() {
return getJerseyClientHandle().getJerseyClient();
}

public PatientResourceClient getPatientResourceClient() {
return new PatientResourceClient(this.getJerseyClientHandle());
}


public Document getAsXml(URI uri) {
if (NullChecker.isNullish(uri))
throw new IllegalArgumentException();
return getAsXml(uri.toString());
}

public Document getAsXml(String uri) {
if (NullChecker.isNullish(uri))
throw new IllegalArgumentException();
WebTarget target = jerseyHandle.target(uri);
logger.debug("GET " + uri.toString());
Document result = target.request().get(Document.class);
return result;
}

}