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 Details

  • Method Details

    • interceptRequest

      public void interceptRequest(ca.uhn.fhir.rest.client.api.IHttpRequest theRequestInterface)
      Specified by:
      interceptRequest in interface ca.uhn.fhir.rest.client.api.IClientInterceptor
    • interceptResponse

      public void interceptResponse(ca.uhn.fhir.rest.client.api.IHttpResponse theResponse) throws IOException
      Specified by:
      interceptResponse in interface ca.uhn.fhir.rest.client.api.IClientInterceptor
      Throws:
      IOException