Example usage for com.vaadin.server WrappedHttpSession getHttpSession

List of usage examples for com.vaadin.server WrappedHttpSession getHttpSession

Introduction

In this page you can find the example usage for com.vaadin.server WrappedHttpSession getHttpSession.

Prototype

public HttpSession getHttpSession() 

Source Link

Document

Gets the wrapped HttpSession .

Usage

From source file:com.foc.vaadin.FocWebApplication.java

License:Apache License

@Override
protected void init(VaadinRequest vaadinRequest) {
    HttpSession httpSession = null;//from  ww  w.  j ava  2s .c  o m
    WrappedHttpSession wrapperHttpSession = VaadinSession.getCurrent() != null
            ? (WrappedHttpSession) VaadinSession.getCurrent().getSession()
            : null;
    if (wrapperHttpSession != null) {
        httpSession = wrapperHttpSession.getHttpSession();
    }

    initialize(vaadinRequest, VaadinServlet.getCurrent().getServletContext(), httpSession, false);
    initializeGUI(vaadinRequest, VaadinServlet.getCurrent().getServletContext(), httpSession);
}