Example usage for com.vaadin.server VaadinServletService getCurrentServletRequest

List of usage examples for com.vaadin.server VaadinServletService getCurrentServletRequest

Introduction

In this page you can find the example usage for com.vaadin.server VaadinServletService getCurrentServletRequest.

Prototype

public static HttpServletRequest getCurrentServletRequest() 

Source Link

Usage

From source file:org.vaadin.addons.lazycontainer.LazyContainer.java

License:Apache License

protected void refreshCachedSize() {
    final HttpServletRequest currentServletRequest = VaadinServletService.getCurrentServletRequest();
    weakRef = new WeakReference<>(currentServletRequest);
}