Java com.vaadin.server VaadinSession fields, constructors, methods, implement or subclass

Example usage for Java com.vaadin.server VaadinSession fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for com.vaadin.server VaadinSession.

The text is from its open source code.

Field

StringUI_PARAMETER
The name of the parameter that is by default used in e.g.
Locklock

Constructor

VaadinSession(VaadinService service)
Creates a new VaadinSession tied to a VaadinService.

Method

voidaccessSynchronously(Runnable runnable)
Locks this session and runs the provided Runnable right away.
voidaddRequestHandler(RequestHandler handler)
Adds a request handler to this session.
voidaddUIProvider(UIProvider uiProvider)
Adds a UI provider to this session.
voidclose()
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.
CollectiongetAllSessions(HttpSession httpSession)
Retrieves all VaadinSession s which are stored in the given HTTP session.
ObjectgetAttribute(String name)
Gets a stored attribute value.
TgetAttribute(Class type)
Gets a stored attribute value.
DeploymentConfigurationgetConfiguration()
Gets the configuration for this session.
ObjectgetConverterFactory()
Gets the ConverterFactory used to locate a suitable Converter for fields in the session.
VaadinSessiongetCurrent()
Gets the currently used session.
VaadinSessiongetForSession(VaadinService service, WrappedSession underlyingSession)
Loads the VaadinSession for the given service and WrappedSession from the HTTP session.
LocalegetLocale()
Gets the default locale for this session.
LockgetLockInstance()
Gets the Lock instance that is used for protecting the data of this session from concurrent access.
CollectiongetRequestHandlers()
Gets the request handlers that are registered to the session.
WrappedSessiongetSession()
Gets the underlying session to which this service session is currently associated.
ListgetUIProviders()
Gets the UI providers configured for this session.
CollectiongetUIs()
Gets all the UIs of this session.
booleanhasLock()
Checks if the current thread has exclusive access to this VaadinSession.
voidremoveUIProvider(UIProvider uiProvider)
Removes a UI provider association from this session.
voidsetAttribute(String name, Object value)
Stores a value in this service session.
voidsetAttribute(Class type, T value)
Stores a value in this service session.
voidsetConverterFactory(Object converterFactory)
Sets the ConverterFactory used to locate a suitable Converter for fields in the session.
voidsetCurrent(VaadinSession session)
Sets the thread local for the current session.
voidsetErrorHandler(ErrorHandler errorHandler)
Sets the session error handler.
voidsetLocale(Locale locale)
Sets the default locale for this session.
voidunlock()
Unlocks this session.