public class BasicAuthInterceptor extends Object implements ca.uhn.fhir.rest.client.api.IClientInterceptor
See the HAPI Documentation for information on how to use this class.
| Constructor and Description |
|---|
BasicAuthInterceptor(String theCredentialString) |
BasicAuthInterceptor(String theUsername,
String thePassword) |
| Modifier and Type | Method and Description |
|---|---|
void |
interceptRequest(ca.uhn.fhir.rest.client.api.IHttpRequest theRequest) |
void |
interceptResponse(ca.uhn.fhir.rest.client.api.IHttpResponse theResponse) |
public BasicAuthInterceptor(String theUsername, String thePassword)
theUsername - The usernamethePassword - The passwordpublic BasicAuthInterceptor(String theCredentialString)
theCredentialString - A credential string in the format username:passwordpublic void interceptRequest(ca.uhn.fhir.rest.client.api.IHttpRequest theRequest)
interceptRequest in interface ca.uhn.fhir.rest.client.api.IClientInterceptorpublic void interceptResponse(ca.uhn.fhir.rest.client.api.IHttpResponse theResponse) throws IOException
interceptResponse in interface ca.uhn.fhir.rest.client.api.IClientInterceptorIOExceptionCopyright © 2014–2019 University Health Network. All rights reserved.