Package ca.uhn.fhir.rest.client.method
Class MethodUtil
java.lang.Object
ca.uhn.fhir.rest.client.method.MethodUtil
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddAcceptHeaderToRequest(ca.uhn.fhir.rest.api.EncodingEnum theEncoding, ca.uhn.fhir.rest.client.api.IHttpRequest theHttpRequest, ca.uhn.fhir.context.FhirContext theContext)static HttpGetClientInvocationcreateConformanceInvocation(ca.uhn.fhir.context.FhirContext theContext)static HttpPostClientInvocationcreateCreateInvocation(org.hl7.fhir.instance.model.api.IBaseResource theResource, ca.uhn.fhir.context.FhirContext theContext)static HttpPostClientInvocationcreateCreateInvocation(org.hl7.fhir.instance.model.api.IBaseResource theResource, String theResourceBody, ca.uhn.fhir.context.FhirContext theContext)static HttpPostClientInvocationcreateCreateInvocation(org.hl7.fhir.instance.model.api.IBaseResource theResource, String theResourceBody, ca.uhn.fhir.context.FhirContext theContext, String theIfNoneExistUrl)static HttpPostClientInvocationcreateCreateInvocation(org.hl7.fhir.instance.model.api.IBaseResource theResource, String theResourceBody, ca.uhn.fhir.context.FhirContext theContext, Map<String,List<String>> theIfNoneExistParams)static HttpPatchClientInvocationcreatePatchInvocation(ca.uhn.fhir.context.FhirContext theContext, ca.uhn.fhir.rest.api.PatchTypeEnum thePatchType, String theBody, String theResourceType, Map<String,List<String>> theMatchParams)static HttpPatchClientInvocationcreatePatchInvocation(ca.uhn.fhir.context.FhirContext theContext, String theUrl, ca.uhn.fhir.rest.api.PatchTypeEnum thePatchType, String theBody)static HttpPatchClientInvocationcreatePatchInvocation(ca.uhn.fhir.context.FhirContext theContext, org.hl7.fhir.instance.model.api.IIdType theId, ca.uhn.fhir.rest.api.PatchTypeEnum thePatchType, String theBody)static HttpPutClientInvocationcreateUpdateInvocation(ca.uhn.fhir.context.FhirContext theContext, org.hl7.fhir.instance.model.api.IBaseResource theResource, String theResourceBody, String theMatchUrl)static HttpPutClientInvocationcreateUpdateInvocation(ca.uhn.fhir.context.FhirContext theContext, org.hl7.fhir.instance.model.api.IBaseResource theResource, String theResourceBody, Map<String,List<String>> theMatchParams)static HttpPutClientInvocationcreateUpdateInvocation(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 StringBuilderstatic List<IParameter>getResourceParameters(ca.uhn.fhir.context.FhirContext theContext, Method theMethod, Object theProvider, ca.uhn.fhir.rest.api.RestOperationTypeEnum theRestfulOperationTypeEnum)static voidparseClientRequestResourceHeaders(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.MethodOutcomeprocess2xxResponse(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) -
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)
-