public abstract class BaseClient extends Object implements IRestfulClient
| Modifier and Type | Class and Description |
|---|---|
protected class |
BaseClient.ResourceResponseHandler<T extends IBaseResource> |
| Modifier and Type | Field and Description |
|---|---|
static String |
HAPI_CLIENT_KEEPRESPONSES
This property is used by unit tests - do not rely on it in production code
as it may change at any time.
|
| Modifier and Type | Method and Description |
|---|---|
protected Map<String,List<String>> |
createExtraParams() |
<T extends IBaseResource> |
fetchResourceFromUrl(Class<T> theResourceType,
String theUrl) |
EncodingEnum |
getEncoding() |
IHttpClient |
getHttpClient() |
List<IClientInterceptor> |
getInterceptors() |
IHttpResponse |
getLastResponse()
For now, this is a part of the internal API of HAPI - Use with caution as this method may change!
|
String |
getLastResponseBody()
For now, this is a part of the internal API of HAPI - Use with caution as this method may change!
|
String |
getServerBase() |
SummaryEnum |
getSummary() |
String |
getUrlBase() |
boolean |
isKeepResponses()
For now, this is a part of the internal API of HAPI - Use with caution as this method may change!
|
boolean |
isPrettyPrint()
Returns the pretty print flag, which is a request to the server for it to return "pretty printed" responses.
|
void |
registerInterceptor(IClientInterceptor theInterceptor) |
void |
setDontValidateConformance(boolean theDontValidateConformance)
This method is an internal part of the HAPI API and may change, use with caution.
|
void |
setEncoding(EncodingEnum theEncoding)
Sets the encoding that will be used on requests.
|
void |
setKeepResponses(boolean theKeepResponses)
For now, this is a part of the internal API of HAPI - Use with caution as this method may change!
|
void |
setPrettyPrint(Boolean thePrettyPrint)
Sets the pretty print flag, which is a request to the server for it to return "pretty printed" responses.
|
void |
setSummary(SummaryEnum theSummary) |
void |
unregisterInterceptor(IClientInterceptor theInterceptor) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetFhirContextpublic static final String HAPI_CLIENT_KEEPRESPONSES
protected Map<String,List<String>> createExtraParams()
public <T extends IBaseResource> T fetchResourceFromUrl(Class<T> theResourceType, String theUrl)
fetchResourceFromUrl in interface IRestfulClientpublic EncodingEnum getEncoding()
getEncoding in interface IRestfulClientpublic IHttpClient getHttpClient()
getHttpClient in interface IRestfulClientpublic List<IClientInterceptor> getInterceptors()
getInterceptors in interface IRestfulClientpublic IHttpResponse getLastResponse()
public String getLastResponseBody()
public String getServerBase()
getServerBase in interface IRestfulClientpublic SummaryEnum getSummary()
public String getUrlBase()
public boolean isKeepResponses()
public boolean isPrettyPrint()
public void registerInterceptor(IClientInterceptor theInterceptor)
registerInterceptor in interface IRestfulClientpublic void setDontValidateConformance(boolean theDontValidateConformance)
IRestfulClientFactory.setServerValidationModeEnum(ServerValidationModeEnum)public void setEncoding(EncodingEnum theEncoding)
null, which means the client will not
explicitly request an encoding. (This is perfectly acceptable behaviour according to the FHIR specification. In
this case, the server will choose which encoding to return, and the client can handle either XML or JSON)setEncoding in interface IRestfulClientpublic void setKeepResponses(boolean theKeepResponses)
public void setPrettyPrint(Boolean thePrettyPrint)
setPrettyPrint in interface IRestfulClientpublic void setSummary(SummaryEnum theSummary)
setSummary in interface IRestfulClientpublic void unregisterInterceptor(IClientInterceptor theInterceptor)
unregisterInterceptor in interface IRestfulClientCopyright © 2014–2018 University Health Network. All rights reserved.