Example usage for Java com.vaadin.server VaadinSession fields, constructors, methods, implement or subclass
The text is from its open source code.
String | UI_PARAMETER The name of the parameter that is by default used in e.g. |
Lock | lock |
VaadinSession(VaadinService service) Creates a new VaadinSession tied to a VaadinService. |
void | accessSynchronously(Runnable runnable) Locks this session and runs the provided Runnable right away. |
void | addRequestHandler(RequestHandler handler) Adds a request handler to this session. |
void | addUIProvider(UIProvider uiProvider) Adds a UI provider to this session. |
void | close() Sets this session to be closed and all UI state to be discarded at the end of the current request, or at the end of the next request if there is no ongoing one. |
Collection | getAllSessions(HttpSession httpSession) Retrieves all VaadinSession s which are stored in the given HTTP session. |
Object | getAttribute(String name) Gets a stored attribute value. |
T | getAttribute(Class Gets a stored attribute value. |
DeploymentConfiguration | getConfiguration() Gets the configuration for this session. |
Object | getConverterFactory() Gets the ConverterFactory used to locate a suitable Converter for fields in the session. |
VaadinSession | getCurrent() Gets the currently used session. |
VaadinSession | getForSession(VaadinService service, WrappedSession underlyingSession) Loads the VaadinSession for the given service and WrappedSession from the HTTP session. |
Locale | getLocale() Gets the default locale for this session. |
Lock | getLockInstance() Gets the Lock instance that is used for protecting the data of this session from concurrent access. |
Collection | getRequestHandlers() Gets the request handlers that are registered to the session. |
WrappedSession | getSession() Gets the underlying session to which this service session is currently associated. |
List | getUIProviders() Gets the UI providers configured for this session. |
Collection | getUIs() Gets all the UIs of this session. |
boolean | hasLock() Checks if the current thread has exclusive access to this VaadinSession. |
void | removeUIProvider(UIProvider uiProvider) Removes a UI provider association from this session. |
void | setAttribute(String name, Object value) Stores a value in this service session. |
void | setAttribute(Class Stores a value in this service session. |
void | setConverterFactory(Object converterFactory) Sets the ConverterFactory used to locate a suitable Converter for fields in the session. |
void | setCurrent(VaadinSession session) Sets the thread local for the current session. |
void | setErrorHandler(ErrorHandler errorHandler) Sets the session error handler. |
void | setLocale(Locale locale) Sets the default locale for this session. |
void | unlock() Unlocks this session. |