Package ca.uhn.fhir.rest.client.apache
Class GZipContentInterceptor
java.lang.Object
ca.uhn.fhir.rest.client.apache.GZipContentInterceptor
- All Implemented Interfaces:
ca.uhn.fhir.rest.client.api.IClientInterceptor
public class GZipContentInterceptor
extends Object
implements ca.uhn.fhir.rest.client.api.IClientInterceptor
Client interceptor which GZip compresses outgoing (POST/PUT) contents being uploaded
from the client to the server. This can improve performance by reducing network
load time.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
interceptRequest
(ca.uhn.fhir.rest.client.api.IHttpRequest theRequestInterface) void
interceptResponse
(ca.uhn.fhir.rest.client.api.IHttpResponse theResponse)
-
Constructor Details
-
GZipContentInterceptor
public GZipContentInterceptor()
-
-
Method Details
-
interceptRequest
- Specified by:
interceptRequest
in interfaceca.uhn.fhir.rest.client.api.IClientInterceptor
-
interceptResponse
public void interceptResponse(ca.uhn.fhir.rest.client.api.IHttpResponse theResponse) throws IOException - Specified by:
interceptResponse
in interfaceca.uhn.fhir.rest.client.api.IClientInterceptor
- Throws:
IOException
-