com.transferwise.common.gracefulshutdown.strategies.servletrequestcount.servletwrappers.JavaxHttpServletRequestWrapper 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 javax.servlet.http.HttpServletRequest;
// To be removed after we drop support for Spring Boot 2
public class JavaxHttpServletRequestWrapper implements HttpServletRequestWrapper {
private final HttpServletRequest delegate;
public JavaxHttpServletRequestWrapper(HttpServletRequest delegate) {
this.delegate = delegate;
}
@Override
public void setAttribute(String key, Object value) {
delegate.setAttribute(key, value);
}
@Override
public String getRequestUri() {
return delegate.getRequestURI();
}
@Override
public String getRemoteAddr() {
return delegate.getRemoteAddr();
}
@Override
public Object getAttribute(String name) {
return delegate.getAttribute(name);
}
@Override
public void removeAttribute(String name) {
delegate.removeAttribute(name);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy