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
Constructors Constructor Description GZipContentInterceptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidinterceptRequest(ca.uhn.fhir.rest.client.api.IHttpRequest theRequestInterface)voidinterceptResponse(ca.uhn.fhir.rest.client.api.IHttpResponse theResponse)
-
-
-
Constructor Detail
-
GZipContentInterceptor
public GZipContentInterceptor()
-
-
Method Detail
-
interceptRequest
public void interceptRequest(ca.uhn.fhir.rest.client.api.IHttpRequest theRequestInterface)
- Specified by:
interceptRequestin interfaceca.uhn.fhir.rest.client.api.IClientInterceptor
-
interceptResponse
public void interceptResponse(ca.uhn.fhir.rest.client.api.IHttpResponse theResponse) throws IOException
- Specified by:
interceptResponsein interfaceca.uhn.fhir.rest.client.api.IClientInterceptor- Throws:
IOException
-
-