com.atlassian.oai.validator.springmvc.ResponseUtils Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of swagger-request-validator-springmvc Show documentation
Show all versions of swagger-request-validator-springmvc Show documentation
OpenAPI / Swagger validation for Spring MVC.
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