com.transferwise.common.gracefulshutdown.strategies.servletrequestcount.servletwrappers.JakartaHttpServletResponseWrapper Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tw-graceful-shutdown Show documentation
Show all versions of tw-graceful-shutdown Show documentation
TransferWise Graceful Shutdown - no noise and errors during releases.
The newest version!
package com.transferwise.common.gracefulshutdown.strategies.servletrequestcount.servletwrappers;
import jakarta.servlet.http.HttpServletResponse;
import java.io.IOException;
// To be removed after we drop support for Spring Boot 2
public class JakartaHttpServletResponseWrapper implements HttpServletResponseWrapper {
private final HttpServletResponse delegate;
public JakartaHttpServletResponseWrapper(HttpServletResponse delegate) {
this.delegate = delegate;
}
@Override
public void sendError(int sc) throws IOException {
delegate.sendError(sc);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy