Package ca.uhn.fhir.rest.client.method
Class MethodUtil
java.lang.Object
ca.uhn.fhir.rest.client.method.MethodUtil
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
addAcceptHeaderToRequest
(ca.uhn.fhir.rest.api.EncodingEnum theEncoding, ca.uhn.fhir.rest.client.api.IHttpRequest theHttpRequest, ca.uhn.fhir.context.FhirContext theContext) static HttpGetClientInvocation
createConformanceInvocation
(ca.uhn.fhir.context.FhirContext theContext) static HttpPostClientInvocation
createCreateInvocation
(org.hl7.fhir.instance.model.api.IBaseResource theResource, ca.uhn.fhir.context.FhirContext theContext) static HttpPostClientInvocation
createCreateInvocation
(org.hl7.fhir.instance.model.api.IBaseResource theResource, String theResourceBody, ca.uhn.fhir.context.FhirContext theContext) static HttpPostClientInvocation
createCreateInvocation
(org.hl7.fhir.instance.model.api.IBaseResource theResource, String theResourceBody, ca.uhn.fhir.context.FhirContext theContext, String theIfNoneExistUrl) static HttpPostClientInvocation
createCreateInvocation
(org.hl7.fhir.instance.model.api.IBaseResource theResource, String theResourceBody, ca.uhn.fhir.context.FhirContext theContext, Map<String, List<String>> theIfNoneExistParams) static HttpPatchClientInvocation
createPatchInvocation
(ca.uhn.fhir.context.FhirContext theContext, ca.uhn.fhir.rest.api.PatchTypeEnum thePatchType, String theBody, String theResourceType, Map<String, List<String>> theMatchParams) static HttpPatchClientInvocation
createPatchInvocation
(ca.uhn.fhir.context.FhirContext theContext, String theUrl, ca.uhn.fhir.rest.api.PatchTypeEnum thePatchType, String theBody) static HttpPatchClientInvocation
createPatchInvocation
(ca.uhn.fhir.context.FhirContext theContext, org.hl7.fhir.instance.model.api.IIdType theId, ca.uhn.fhir.rest.api.PatchTypeEnum thePatchType, String theBody) static HttpPutClientInvocation
createUpdateHistoryRewriteInvocation
(org.hl7.fhir.instance.model.api.IBaseResource theResource, String theResourceBody, org.hl7.fhir.instance.model.api.IIdType theId, ca.uhn.fhir.context.FhirContext theContext) static HttpPutClientInvocation
createUpdateInvocation
(ca.uhn.fhir.context.FhirContext theContext, org.hl7.fhir.instance.model.api.IBaseResource theResource, String theResourceBody, String theMatchUrl) static HttpPutClientInvocation
createUpdateInvocation
(ca.uhn.fhir.context.FhirContext theContext, org.hl7.fhir.instance.model.api.IBaseResource theResource, String theResourceBody, Map<String, List<String>> theMatchParams) static HttpPutClientInvocation
createUpdateInvocation
(org.hl7.fhir.instance.model.api.IBaseResource theResource, String theResourceBody, org.hl7.fhir.instance.model.api.IIdType theId, ca.uhn.fhir.context.FhirContext theContext) static StringBuilder
static List
<IParameter> getResourceParameters
(ca.uhn.fhir.context.FhirContext theContext, Method theMethod, Object theProvider, ca.uhn.fhir.rest.api.RestOperationTypeEnum theRestfulOperationTypeEnum) static void
parseClientRequestResourceHeaders
(org.hl7.fhir.instance.model.api.IIdType theRequestedId, Map<String, List<String>> theHeaders, org.hl7.fhir.instance.model.api.IBaseResource resource) static ca.uhn.fhir.rest.api.MethodOutcome
process2xxResponse
(ca.uhn.fhir.context.FhirContext theContext, int theResponseStatusCode, String theResponseMimeType, InputStream theResponseReader, Map<String, List<String>> theHeaders)
-
Method Details
-
addAcceptHeaderToRequest
public static void addAcceptHeaderToRequest(ca.uhn.fhir.rest.api.EncodingEnum theEncoding, ca.uhn.fhir.rest.client.api.IHttpRequest theHttpRequest, ca.uhn.fhir.context.FhirContext theContext) -
createConformanceInvocation
public static HttpGetClientInvocation createConformanceInvocation(ca.uhn.fhir.context.FhirContext theContext) -
createCreateInvocation
public static HttpPostClientInvocation createCreateInvocation(org.hl7.fhir.instance.model.api.IBaseResource theResource, ca.uhn.fhir.context.FhirContext theContext) -
createCreateInvocation
public static HttpPostClientInvocation createCreateInvocation(org.hl7.fhir.instance.model.api.IBaseResource theResource, String theResourceBody, ca.uhn.fhir.context.FhirContext theContext) -
createCreateInvocation
public static HttpPostClientInvocation createCreateInvocation(org.hl7.fhir.instance.model.api.IBaseResource theResource, String theResourceBody, ca.uhn.fhir.context.FhirContext theContext, Map<String, List<String>> theIfNoneExistParams) -
createCreateInvocation
public static HttpPostClientInvocation createCreateInvocation(org.hl7.fhir.instance.model.api.IBaseResource theResource, String theResourceBody, ca.uhn.fhir.context.FhirContext theContext, String theIfNoneExistUrl) -
createPatchInvocation
public static HttpPatchClientInvocation createPatchInvocation(ca.uhn.fhir.context.FhirContext theContext, org.hl7.fhir.instance.model.api.IIdType theId, ca.uhn.fhir.rest.api.PatchTypeEnum thePatchType, String theBody) -
createPatchInvocation
public static HttpPatchClientInvocation createPatchInvocation(ca.uhn.fhir.context.FhirContext theContext, ca.uhn.fhir.rest.api.PatchTypeEnum thePatchType, String theBody, String theResourceType, Map<String, List<String>> theMatchParams) -
createPatchInvocation
public static HttpPatchClientInvocation createPatchInvocation(ca.uhn.fhir.context.FhirContext theContext, String theUrl, ca.uhn.fhir.rest.api.PatchTypeEnum thePatchType, String theBody) -
createUpdateInvocation
public static HttpPutClientInvocation createUpdateInvocation(ca.uhn.fhir.context.FhirContext theContext, org.hl7.fhir.instance.model.api.IBaseResource theResource, String theResourceBody, Map<String, List<String>> theMatchParams) -
createUpdateInvocation
public static HttpPutClientInvocation createUpdateInvocation(ca.uhn.fhir.context.FhirContext theContext, org.hl7.fhir.instance.model.api.IBaseResource theResource, String theResourceBody, String theMatchUrl) -
createUpdateInvocation
public static HttpPutClientInvocation createUpdateInvocation(org.hl7.fhir.instance.model.api.IBaseResource theResource, String theResourceBody, org.hl7.fhir.instance.model.api.IIdType theId, ca.uhn.fhir.context.FhirContext theContext) -
createUpdateHistoryRewriteInvocation
public static HttpPutClientInvocation createUpdateHistoryRewriteInvocation(org.hl7.fhir.instance.model.api.IBaseResource theResource, String theResourceBody, org.hl7.fhir.instance.model.api.IIdType theId, ca.uhn.fhir.context.FhirContext theContext) -
createUrl
-
getResourceParameters
public static List<IParameter> getResourceParameters(ca.uhn.fhir.context.FhirContext theContext, Method theMethod, Object theProvider, ca.uhn.fhir.rest.api.RestOperationTypeEnum theRestfulOperationTypeEnum) -
parseClientRequestResourceHeaders
public static void parseClientRequestResourceHeaders(org.hl7.fhir.instance.model.api.IIdType theRequestedId, Map<String, List<String>> theHeaders, org.hl7.fhir.instance.model.api.IBaseResource resource) -
process2xxResponse
public static ca.uhn.fhir.rest.api.MethodOutcome process2xxResponse(ca.uhn.fhir.context.FhirContext theContext, int theResponseStatusCode, String theResponseMimeType, InputStream theResponseReader, Map<String, List<String>> theHeaders)
-