Class ServeMediaResourceRawInterceptor
- java.lang.Object
-
- ca.uhn.fhir.rest.server.interceptor.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
-
-
Field Summary
Fields Modifier and Type Field Description static StringMEDIA_CONTENT_CONTENT_TYPE_OPT
-
Constructor Summary
Constructors Constructor Description ServeMediaResourceRawInterceptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanoutgoingResponse(RequestDetails theRequestDetails, org.hl7.fhir.instance.model.api.IBaseResource theResponseObject, javax.servlet.http.HttpServletRequest theServletRequest, javax.servlet.http.HttpServletResponse theServletResponse)
-
-
-
Field Detail
-
MEDIA_CONTENT_CONTENT_TYPE_OPT
public static final String MEDIA_CONTENT_CONTENT_TYPE_OPT
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ServeMediaResourceRawInterceptor
public ServeMediaResourceRawInterceptor()
-
-
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
-
-