Class ModifiedStringApacheHttpResponse

All Implemented Interfaces:

public class ModifiedStringApacheHttpResponse extends BaseHttpResponse implements
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 Details

    • ModifiedStringApacheHttpResponse

      public ModifiedStringApacheHttpResponse( theOrigHttpResponse, String theNewContent, ca.uhn.fhir.util.StopWatch theResponseStopWatch)
  • Method Details

    • bufferEntity

      public void bufferEntity() throws IOException
      Specified by:
      bufferEntity in interface
    • close

      public void close()
      Specified by:
      close in interface
    • createReader

      public Reader createReader() throws IOException
      Specified by:
      createReader in interface
    • getAllHeaders

      Specified by:
      getAllHeaders in interface
    • getHeaders

      public List<String> getHeaders(String theName)
      Specified by:
      getHeaders in interface
    • getMimeType

      public String getMimeType()
      Specified by:
      getMimeType in interface
    • getRequestStopWatch

      public ca.uhn.fhir.util.StopWatch getRequestStopWatch()
      Specified by:
      getRequestStopWatch in interface
      getRequestStopWatch in class BaseHttpResponse
    • getResponse

      public Object getResponse()
      Specified by:
      getResponse in interface
    • getStatus

      public int getStatus()
      Specified by:
      getStatus in interface
    • getStatusInfo

      Specified by:
      getStatusInfo in interface
    • readEntity

      Specified by:
      readEntity in interface