Skip to content

Package: SessionProvider

SessionProvider

Coverage

1: /*******************************************************************************
2: * Copyright (c) 2011-2013 EclipseSource Muenchen GmbH and others.
3: *
4: * All rights reserved. This program and the accompanying materials
5: * are made available under the terms of the Eclipse Public License 2.0
6: * which accompanies this distribution, and is available at
7: * https://www.eclipse.org/legal/epl-2.0/
8: *
9: * SPDX-License-Identifier: EPL-2.0
10: *
11: * Contributors:
12: * Neil Mackenzie - initial implementation
13: ******************************************************************************/
14: package org.eclipse.emf.ecp.core.rap;
15:
16: import org.eclipse.rap.rwt.service.UISessionListener;
17:
18: /**
19: * This class provides the current session ID.
20: *
21: * @author neilmack
22: *
23: */
24: public interface SessionProvider {
25:         /**
26:          * get the current sessions ID.
27:          *
28:          * @return the current sessions ID
29:          */
30:         String getSessionId();
31:
32:         /**
33:          * registers a listener to the current RAP UI session.
34:          *
35:          * @param listener The UISessionListener to register
36:          */
37:         void registerListenerWithSession(UISessionListener listener);
38:
39: }