Class ServeMediaResourceRawInterceptor


  • public class ServeMediaResourceRawInterceptor
    extends Object
    This interceptor allows a client to request that a Media resource be served as the raw contents of the resource, assuming either:
    • The client explicitly requests the correct content type using the Accept header
    • The client explicitly requests raw output by adding the parameter _output=data
    • Method Detail

      • outgoingResponse

        public boolean outgoingResponse​(RequestDetails theRequestDetails,
                                        org.hl7.fhir.instance.model.api.IBaseResource theResponseObject,
                                        javax.servlet.http.HttpServletRequest theServletRequest,
                                        javax.servlet.http.HttpServletResponse theServletResponse)
                                 throws ca.uhn.fhir.rest.server.exceptions.AuthenticationException
        Throws:
        ca.uhn.fhir.rest.server.exceptions.AuthenticationException