Stream: hapi
Topic: InterceptorAdapter
Keith Boone (Dec 12 2017 at 04:48):
How can I tell which outgoingResponse method is going to be called in a class deriving from InterceptorAdapter. There are so many methods of the same name, and it is unclear how the method is selected. Is there any change more than one of these would be called for a single FHIR API Call? @James Agnew
James Agnew (Dec 12 2017 at 21:45):
@Keith Boone I would agree the documentation could use some improvement on that class.
In all likelihood you want this one: outgoingResponse(RequestDetails theRequestDetails, IBaseResource theResponseObject, HttpServletRequest theServletRequest, HttpServletResponse theServletResponse)
You could always put a logger though in each method and see which one gets called in your specific use case.
James Agnew (Dec 13 2017 at 02:56):
Ok, I've checked in some documentation improvements to make this more clear.
Last updated: Apr 12 2022 at 19:14 UTC