Package ca.uhn.fhir.rest.client.method
Class HttpPostClientInvocation
java.lang.Object
ca.uhn.fhir.rest.client.impl.BaseHttpClientInvocation
ca.uhn.fhir.rest.client.method.HttpPostClientInvocation
-
Constructor Summary
ConstructorDescriptionHttpPostClientInvocation
(ca.uhn.fhir.context.FhirContext theContext, String theContents, boolean theIsBundle, String theUrlExtension) HttpPostClientInvocation
(ca.uhn.fhir.context.FhirContext theContext, List<? extends org.hl7.fhir.instance.model.api.IBaseResource> theResources, ca.uhn.fhir.model.valueset.BundleTypeEnum theBundleType) HttpPostClientInvocation
(ca.uhn.fhir.context.FhirContext theContext, Map<String, List<String>> theParams, String... theUrlExtension) HttpPostClientInvocation
(ca.uhn.fhir.context.FhirContext theContext, org.hl7.fhir.instance.model.api.IBaseResource theResource) HttpPostClientInvocation
(ca.uhn.fhir.context.FhirContext theContext, org.hl7.fhir.instance.model.api.IBaseResource theResource, String theUrlExtension) -
Method Summary
Modifier and TypeMethodDescriptionca.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 requestprotected ca.uhn.fhir.rest.api.RequestTypeEnum
Get the HTTP request type.void
setForceResourceId
(org.hl7.fhir.instance.model.api.IIdType theId) void
setIfNoneExistParams
(Map<String, List<String>> theIfNoneExist) void
setIfNoneExistString
(String theIfNoneExistString) void
setOmitResourceId
(boolean theOmitResourceId) Methods inherited from class ca.uhn.fhir.rest.client.impl.BaseHttpClientInvocation
addHeader, appendExtraParamsWithQuestionMark, createHttpRequest, getContext, getHeaders, getRestfulClientFactory
-
Constructor Details
-
HttpPostClientInvocation
public HttpPostClientInvocation(ca.uhn.fhir.context.FhirContext theContext, org.hl7.fhir.instance.model.api.IBaseResource theResource, String theUrlExtension) -
HttpPostClientInvocation
public HttpPostClientInvocation(ca.uhn.fhir.context.FhirContext theContext, org.hl7.fhir.instance.model.api.IBaseResource theResource) -
HttpPostClientInvocation
public HttpPostClientInvocation(ca.uhn.fhir.context.FhirContext theContext, List<? extends org.hl7.fhir.instance.model.api.IBaseResource> theResources, ca.uhn.fhir.model.valueset.BundleTypeEnum theBundleType) -
HttpPostClientInvocation
public HttpPostClientInvocation(ca.uhn.fhir.context.FhirContext theContext, String theContents, boolean theIsBundle, String theUrlExtension) -
HttpPostClientInvocation
-
-
Method Details
-
getRequestType
Get the HTTP request type. -
asHttpRequest
public ca.uhn.fhir.rest.client.api.IHttpRequest asHttpRequest(String theUrlBase, Map<String, List<String>> theExtraParams, ca.uhn.fhir.rest.api.EncodingEnum theEncoding, Boolean thePrettyPrint) throws ca.uhn.fhir.parser.DataFormatExceptionDescription copied from class:BaseHttpClientInvocation
Create an HTTP request out of this client request- Specified by:
asHttpRequest
in classBaseHttpClientInvocation
- Parameters:
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 server- Throws:
ca.uhn.fhir.parser.DataFormatException
-
setForceResourceId
public void setForceResourceId(org.hl7.fhir.instance.model.api.IIdType theId) -
setIfNoneExistParams
-
setIfNoneExistString
-
setOmitResourceId
public void setOmitResourceId(boolean theOmitResourceId)
-