com.atlassian.router.HttpServletRequestWithContext Maven / Gradle / Ivy
The newest version!
package com.atlassian.router;
import com.atlassian.router.internal.HttpServletRequestWithContextImpl;
import javax.servlet.http.HttpServletRequest;
import java.util.Optional;
public interface HttpServletRequestWithContext extends HttpServletRequest {
static HttpServletRequestWithContext Wrap(final HttpServletRequest request) {
return new HttpServletRequestWithContextImpl(request);
}
void addContext(T context);
Optional getContext(Class klass);
}