public AddonContext getAddonContext() { | public AddonContext getAddonContext() { | ||||
return addonContext; | return addonContext; | ||||
} | } | ||||
@Override | |||||
public VaadinSession getVaadinSession(WrappedRequest request) { | |||||
return (VaadinSession) request.getAttribute(VaadinSession.class | |||||
.getName()); | |||||
} | |||||
} | } |
return; | return; | ||||
} | } | ||||
VaadinSession.setCurrent(application); | VaadinSession.setCurrent(application); | ||||
request.setAttribute(VaadinSession.class.getName(), application); | |||||
/* | /* | ||||
* Get or create an application context and an application | * Get or create an application context and an application |
* base directory. | * base directory. | ||||
*/ | */ | ||||
public File getBaseDirectory(); | public File getBaseDirectory(); | ||||
/** | |||||
* Gets the Vaadin session associated with this request. | |||||
* | |||||
* @param request | |||||
* the request to get a vaadin session for. | |||||
* | |||||
* @see VaadinSession | |||||
* | |||||
* @return the vaadin session for the request, or <code>null</code> if no | |||||
* session is found and this is a request for which a new session | |||||
* shouldn't be created. | |||||
*/ | |||||
public VaadinSession getVaadinSession(WrappedRequest request); | |||||
} | } |
if (application == null) { | if (application == null) { | ||||
return; | return; | ||||
} | } | ||||
request.setAttribute(VaadinSession.class.getName(), application); | |||||
VaadinSession.setCurrent(application); | VaadinSession.setCurrent(application); | ||||
/* | /* |