Class DefaultVaadinLogoutGateway
java.lang.Object
com.svenruppert.jsentinel.logout.vaadin.DefaultVaadinLogoutGateway
- All Implemented Interfaces:
VaadinLogoutGateway
Default
VaadinLogoutGateway backed by the static Vaadin APIs.
Calls become safe no-ops when there is no current UI / session, so the
gateway can be invoked from background threads without blowing up.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidCloses the current Vaadin session.voidInvalidates the underlying servlet session.voidredirectTo(String routePath) Tells the browser to navigate to the given path.
-
Constructor Details
-
DefaultVaadinLogoutGateway
public DefaultVaadinLogoutGateway()
-
-
Method Details
-
redirectTo
Description copied from interface:VaadinLogoutGatewayTells the browser to navigate to the given path. Implementations should usePage.setLocation(...)so the navigation survives a subsequentVaadinLogoutGateway.closeVaadinSession()orVaadinLogoutGateway.invalidateHttpSession()call.- Specified by:
redirectToin interfaceVaadinLogoutGateway
-
closeVaadinSession
public void closeVaadinSession()Description copied from interface:VaadinLogoutGatewayCloses the current Vaadin session.- Specified by:
closeVaadinSessionin interfaceVaadinLogoutGateway
-
invalidateHttpSession
public void invalidateHttpSession()Description copied from interface:VaadinLogoutGatewayInvalidates the underlying servlet session.- Specified by:
invalidateHttpSessionin interfaceVaadinLogoutGateway
-