Package ca.uhn.fhir.rest.client.apache
Class ModifiedStringApacheHttpResponse
java.lang.Object
ca.uhn.fhir.rest.client.impl.BaseHttpResponse
ca.uhn.fhir.rest.client.apache.ModifiedStringApacheHttpResponse
- All Implemented Interfaces:
ca.uhn.fhir.rest.client.api.IHttpResponse
public class ModifiedStringApacheHttpResponse
extends BaseHttpResponse
implements ca.uhn.fhir.rest.client.api.IHttpResponse
Process a modified copy of an existing
IHttpResponse
with a String containing new content.
Meant to be used with custom interceptors that need to hijack an existing IHttpResponse with new content.-
Constructor Summary
ConstructorDescriptionModifiedStringApacheHttpResponse
(ca.uhn.fhir.rest.client.api.IHttpResponse theOrigHttpResponse, String theNewContent, ca.uhn.fhir.util.StopWatch theResponseStopWatch) -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
close()
getHeaders
(String theName) ca.uhn.fhir.util.StopWatch
int
-
Constructor Details
-
ModifiedStringApacheHttpResponse
public ModifiedStringApacheHttpResponse(ca.uhn.fhir.rest.client.api.IHttpResponse theOrigHttpResponse, String theNewContent, ca.uhn.fhir.util.StopWatch theResponseStopWatch)
-
-
Method Details
-
bufferEntity
- Specified by:
bufferEntity
in interfaceca.uhn.fhir.rest.client.api.IHttpResponse
- Throws:
IOException
-
close
- Specified by:
close
in interfaceca.uhn.fhir.rest.client.api.IHttpResponse
-
createReader
- Specified by:
createReader
in interfaceca.uhn.fhir.rest.client.api.IHttpResponse
- Throws:
IOException
-
getAllHeaders
- Specified by:
getAllHeaders
in interfaceca.uhn.fhir.rest.client.api.IHttpResponse
-
getHeaders
- Specified by:
getHeaders
in interfaceca.uhn.fhir.rest.client.api.IHttpResponse
-
getMimeType
- Specified by:
getMimeType
in interfaceca.uhn.fhir.rest.client.api.IHttpResponse
-
getRequestStopWatch
- Specified by:
getRequestStopWatch
in interfaceca.uhn.fhir.rest.client.api.IHttpResponse
- Overrides:
getRequestStopWatch
in classBaseHttpResponse
-
getResponse
- Specified by:
getResponse
in interfaceca.uhn.fhir.rest.client.api.IHttpResponse
-
getStatus
- Specified by:
getStatus
in interfaceca.uhn.fhir.rest.client.api.IHttpResponse
-
getStatusInfo
- Specified by:
getStatusInfo
in interfaceca.uhn.fhir.rest.client.api.IHttpResponse
-
readEntity
- Specified by:
readEntity
in interfaceca.uhn.fhir.rest.client.api.IHttpResponse
-