Example usage for com.vaadin.server WebBrowser updateRequestDetails

List of usage examples for com.vaadin.server WebBrowser updateRequestDetails

Introduction

In this page you can find the example usage for com.vaadin.server WebBrowser updateRequestDetails.

Prototype

public void updateRequestDetails(VaadinRequest request) 

Source Link

Document

For internal use by VaadinServlet/VaadinPortlet only.

Usage

From source file:com.haulmont.cuba.web.security.ConnectionImpl.java

License:Apache License

protected WebBrowser getWebBrowserDetails() {
    // timezone info is passed only on VaadinSession creation
    WebBrowser webBrowser = VaadinSession.getCurrent().getBrowser();
    VaadinRequest currentRequest = VaadinService.getCurrentRequest();
    // update web browser instance if current request is not null
    // it can be null in case of background/async processing of login request
    if (currentRequest != null) {
        webBrowser.updateRequestDetails(currentRequest);
    }/*from w ww.  j a v  a  2s . co m*/
    return webBrowser;
}