public class SimpleRequestHeaderInterceptor extends Object implements ca.uhn.fhir.rest.client.api.IClientInterceptor
| Constructor and Description |
|---|
SimpleRequestHeaderInterceptor()
Constructor
|
SimpleRequestHeaderInterceptor(String theCompleteHeader)
Constructor which takes a complete header including name and value
|
SimpleRequestHeaderInterceptor(String theHeaderName,
String theHeaderValue)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
String |
getHeaderName() |
String |
getHeaderValue() |
void |
interceptRequest(ca.uhn.fhir.rest.client.api.IHttpRequest theRequest) |
void |
interceptResponse(ca.uhn.fhir.rest.client.api.IHttpResponse theResponse) |
void |
setHeaderName(String theHeaderName) |
void |
setHeaderValue(String theHeaderValue) |
public SimpleRequestHeaderInterceptor()
public SimpleRequestHeaderInterceptor(String theHeaderName, String theHeaderValue)
theHeaderName - The header name, e.g. "Authorization"theHeaderValue - The header value, e.g. "Bearer 09uer90uw9yh"public SimpleRequestHeaderInterceptor(String theCompleteHeader)
theCompleteHeader - The complete header, e.g. "Authorization: Bearer af09ufe90efh". Must not be null or empty.public String getHeaderName()
public String getHeaderValue()
public 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.IClientInterceptorIOExceptionpublic void setHeaderName(String theHeaderName)
public void setHeaderValue(String theHeaderValue)
Copyright © 2014–2019 University Health Network. All rights reserved.