com.transferwise.common.gracefulshutdown.strategies.servletrequestcount.servletwrappers.JavaxHttpServletResponseWrapper 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 java.io.IOException;
import javax.servlet.http.HttpServletResponse;
// To be removed after we drop support for Spring Boot 2
public class JavaxHttpServletResponseWrapper implements HttpServletResponseWrapper {
private final HttpServletResponse delegate;
public JavaxHttpServletResponseWrapper(HttpServletResponse delegate) {
this.delegate = delegate;
}
@Override
public void sendError(int sc) throws IOException {
delegate.sendError(sc);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy