Example usage for com.vaadin.server VaadinRequest setAttribute

List of usage examples for com.vaadin.server VaadinRequest setAttribute

Introduction

In this page you can find the example usage for com.vaadin.server VaadinRequest setAttribute.

Prototype

public void setAttribute(String name, Object value);

Source Link

Document

Defines a request attribute.

Usage

From source file:de.unioninvestment.eai.portal.support.vaadin.CrudVaadinPortletService.java

License:Apache License

@Override
public void requestStart(VaadinRequest request, VaadinResponse response) {
    request.setAttribute(CRUD2GO_PROCESSING_INFO, new RequestProcessingInfo());
    super.requestStart(request, response);
}

From source file:edu.nps.moves.mmowgli.Mmowgli2VaadinServlet.java

License:Open Source License

@Override
public void sessionInit(SessionInitEvent event) throws ServiceException {
    MmowgliSessionGlobals globs = new MmowgliSessionGlobals(event, this); // Initialize global object across all users windows, gets stored in VaadinSession object referenced in event
    event.getSession().addUIProvider(new Mmowgli2UIProvider());

    // Support CAC card
    VaadinRequest req = event.getRequest();
    CACData cData = CACManager.findCAC(req);
    req.setAttribute(CACData.class.getName(), cData);
    globs.setCACInfo(cData);//from   w w w. ja v a  2  s.  c  o  m

    MSysOut.println(SYSTEM_LOGS, "JMETERdebug: Session created, id = " + event.getSession().hashCode());
    if (appMaster != null) {// might be with error on startup
        appMaster.doSessionCountUpdate(incrementSessionCount()); // remove after the following works
        appMaster.logSessionInit(event);
    }
}