All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.atlassian.oai.validator.springmvc.ResponseUtils Maven / Gradle / Ivy

There is a newer version: 2.43.0
Show newest version
package com.atlassian.oai.validator.springmvc;

import org.springframework.web.util.WebUtils;

import javax.servlet.http.HttpServletResponse;

public class ResponseUtils {
    private ResponseUtils() { }

    /**
     * With async processing at play, the response wrapper does not have to be at the top and we
     * do not want to use multiple ContentCachingResponseWrappers. We have to find our wrapper in the wrapper chain.
     */
    public static OpenApiValidationContentCachingResponseWrapper getCachingResponse(final HttpServletResponse responseToUse) {
        return WebUtils.getNativeResponse(responseToUse, OpenApiValidationContentCachingResponseWrapper.class);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy