public abstract class BaseHttpClientInvocation extends Object
| Constructor and Description |
|---|
BaseHttpClientInvocation(ca.uhn.fhir.context.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 ca.uhn.fhir.rest.client.api.IHttpRequest |
asHttpRequest(String theUrlBase,
Map<String,List<String>> theExtraParams,
ca.uhn.fhir.rest.api.EncodingEnum theEncoding,
Boolean thePrettyPrint)
Create an HTTP request out of this client request
|
protected ca.uhn.fhir.rest.client.api.IHttpRequest |
createHttpRequest(String theUrl,
ca.uhn.fhir.rest.api.EncodingEnum theEncoding,
ca.uhn.fhir.rest.api.RequestTypeEnum theRequestType)
Create an HTTP request for the given url, encoding and request-type
|
ca.uhn.fhir.context.FhirContext |
getContext()
Returns the FHIR context associated with this client
|
List<ca.uhn.fhir.rest.client.api.Header> |
getHeaders()
Returns the http headers to be sent with the request
|
ca.uhn.fhir.rest.client.api.IRestfulClientFactory |
getRestfulClientFactory()
Get the restfull client factory
|
public BaseHttpClientInvocation(ca.uhn.fhir.context.FhirContext myContext)
public abstract ca.uhn.fhir.rest.client.api.IHttpRequest asHttpRequest(String theUrlBase, Map<String,List<String>> theExtraParams, ca.uhn.fhir.rest.api.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 ca.uhn.fhir.rest.client.api.IHttpRequest createHttpRequest(String theUrl, ca.uhn.fhir.rest.api.EncodingEnum theEncoding, ca.uhn.fhir.rest.api.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 ca.uhn.fhir.context.FhirContext getContext()
public List<ca.uhn.fhir.rest.client.api.Header> getHeaders()
public ca.uhn.fhir.rest.client.api.IRestfulClientFactory getRestfulClientFactory()
public static void appendExtraParamsWithQuestionMark(Map<String,List<String>> theExtraParams, StringBuilder theUrlBuilder, boolean theWithQuestionMark)
Copyright © 2014–2019 University Health Network. All rights reserved.