public void addHttpHeaderToResponseStream ( final HttpServletResponse servletResponse , final UriInfo uriInfo , final FedoraResource resource ) { getUriAwareHttpHeaderFactories ( ) . forEach ( ( bean , factory ) -> { LOGGER . debug ( "Adding HTTP headers using: {}" , bean ) ; final Multimap < String , String > h = factory . createHttpHeadersForResource ( uriInfo , resource ) ; h . entries ( ) . forEach ( entry -> { servletResponse . addHeader ( entry . getKey ( ) , entry . getValue ( ) ) ; } ) ; } ) ; }
Add additional Http Headers