}
@Override
public StreamableResource addResponseCustomizer(final ResponseCustomizer customizer)
{
final ResponseCustomizer oldCustomizer = responseCustomizer;
if (oldCustomizer == null)
{
return withNewResourceCustomizer(customizer);
}
return withNewResourceCustomizer(new ResponseCustomizer()
{
@Override
public void customizeResponse(StreamableResource resource, Response response) throws IOException
{
oldCustomizer.customizeResponse(resource, response);
customizer.customizeResponse(resource, response);
}
});
}