
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
ConstructorsConstructorDescriptionModifiedStringApacheHttpResponse(ca.uhn.fhir.rest.client.api.IHttpResponse theOrigHttpResponse, String theNewContent, ca.uhn.fhir.util.StopWatch theResponseStopWatch) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidclose()getHeaders(String theName) ca.uhn.fhir.util.StopWatchint
-
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:
bufferEntityin interfaceca.uhn.fhir.rest.client.api.IHttpResponse- Throws:
IOException
-
close
- Specified by:
closein interfaceca.uhn.fhir.rest.client.api.IHttpResponse
-
createReader
- Specified by:
createReaderin interfaceca.uhn.fhir.rest.client.api.IHttpResponse- Throws:
IOException
-
getAllHeaders
- Specified by:
getAllHeadersin interfaceca.uhn.fhir.rest.client.api.IHttpResponse
-
getHeaders
- Specified by:
getHeadersin interfaceca.uhn.fhir.rest.client.api.IHttpResponse
-
getMimeType
- Specified by:
getMimeTypein interfaceca.uhn.fhir.rest.client.api.IHttpResponse
-
getRequestStopWatch
- Specified by:
getRequestStopWatchin interfaceca.uhn.fhir.rest.client.api.IHttpResponse- Overrides:
getRequestStopWatchin classBaseHttpResponse
-
getResponse
- Specified by:
getResponsein interfaceca.uhn.fhir.rest.client.api.IHttpResponse
-
getStatus
- Specified by:
getStatusin interfaceca.uhn.fhir.rest.client.api.IHttpResponse
-
getStatusInfo
- Specified by:
getStatusInfoin interfaceca.uhn.fhir.rest.client.api.IHttpResponse
-
readEntity
- Specified by:
readEntityin interfaceca.uhn.fhir.rest.client.api.IHttpResponse
-