public abstract class BaseHttpClientInvocation extends Object
| Constructor and Description |
|---|
BaseHttpClientInvocation(FhirContext myContext) |
| Modifier and Type | Method and Description |
|---|---|
void |
addHeader(String theName,
String theValue) |
static void |
appendExtraParamsWithQuestionMark(Map<String,List<String>> theExtraParams,
StringBuilder theUrlBuilder,
boolean theWithQuestionMark) |
abstract IHttpRequest |
asHttpRequest(String theUrlBase,
Map<String,List<String>> theExtraParams,
EncodingEnum theEncoding,
Boolean thePrettyPrint)
Create an HTTP request out of this client request
|
protected IHttpRequest |
createHttpRequest(String theUrl,
EncodingEnum theEncoding,
RequestTypeEnum theRequestType)
Create an HTTP request for the given url, encoding and request-type
|
FhirContext |
getContext()
Returns the FHIR context associated with this client
|
List<Header> |
getHeaders()
Returns the http headers to be sent with the request
|
IRestfulClientFactory |
getRestfulClientFactory()
Get the restfull client factory
|
public BaseHttpClientInvocation(FhirContext myContext)
public abstract IHttpRequest asHttpRequest(String theUrlBase, Map<String,List<String>> theExtraParams, EncodingEnum theEncoding, Boolean thePrettyPrint)
theUrlBase - The FHIR server base url (with a trailing "/")theExtraParams - Any extra request parameters the server wishes to addtheEncoding - The encoding to use for any serialized content sent to the
serverprotected IHttpRequest createHttpRequest(String theUrl, EncodingEnum theEncoding, RequestTypeEnum theRequestType)
theUrl - The complete FHIR url to which the http request will be senttheEncoding - The encoding to use for any serialized content sent to the
servertheRequestType - the type of HTTP request (GET, DELETE, ..)public FhirContext getContext()
public List<Header> getHeaders()
public IRestfulClientFactory getRestfulClientFactory()
public static void appendExtraParamsWithQuestionMark(Map<String,List<String>> theExtraParams, StringBuilder theUrlBuilder, boolean theWithQuestionMark)
Copyright © 2014–2018 University Health Network. All rights reserved.