Class ServeMediaResourceRawInterceptor
java.lang.Object
ca.uhn.fhir.rest.server.interceptor.ServeMediaResourceRawInterceptor
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
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
outgoingResponse
(RequestDetails theRequestDetails, org.hl7.fhir.instance.model.api.IBaseResource theResponseObject, jakarta.servlet.http.HttpServletRequest theServletRequest, jakarta.servlet.http.HttpServletResponse theServletResponse)
-
Field Details
-
MEDIA_CONTENT_CONTENT_TYPE_OPT
- See Also:
-
-
Constructor Details
-
ServeMediaResourceRawInterceptor
public ServeMediaResourceRawInterceptor()
-
-
Method Details
-
outgoingResponse
public boolean outgoingResponse(RequestDetails theRequestDetails, org.hl7.fhir.instance.model.api.IBaseResource theResponseObject, jakarta.servlet.http.HttpServletRequest theServletRequest, jakarta.servlet.http.HttpServletResponse theServletResponse) throws ca.uhn.fhir.rest.server.exceptions.AuthenticationException - Throws:
ca.uhn.fhir.rest.server.exceptions.AuthenticationException
-