Package ca.uhn.fhir.rest.client.apache
Class ResourceEntity
- java.lang.Object
-
- org.apache.http.entity.AbstractHttpEntity
-
- org.apache.http.entity.StringEntity
-
- ca.uhn.fhir.rest.client.apache.ResourceEntity
-
- All Implemented Interfaces:
Cloneable,org.apache.http.HttpEntity
public class ResourceEntity extends org.apache.http.entity.StringEntity
Apache HttpClient request content entity where the body is a FHIR resource, that will be encoded as JSON by default
-
-
Constructor Summary
Constructors Constructor Description ResourceEntity(ca.uhn.fhir.context.FhirContext theContext, org.hl7.fhir.instance.model.api.IBaseResource theResource)
-
Method Summary
-
Methods inherited from class org.apache.http.entity.StringEntity
clone, getContent, getContentLength, isRepeatable, isStreaming, writeTo
-
-
-
-
Constructor Detail
-
ResourceEntity
public ResourceEntity(ca.uhn.fhir.context.FhirContext theContext, org.hl7.fhir.instance.model.api.IBaseResource theResource) throws UnsupportedCharsetException
- Throws:
UnsupportedCharsetException
-
-