Errai 3.0.1-SNAPSHOT

org.jboss.errai.bus.server
Class HttpSessionProvider

java.lang.Object
  extended by org.jboss.errai.bus.server.HttpSessionProvider
All Implemented Interfaces:
SessionProvider<javax.servlet.http.HttpSession>

public class HttpSessionProvider
extends Object
implements SessionProvider<javax.servlet.http.HttpSession>

The SessionProvider for HTTP-based queue sessions.


Nested Class Summary
static class HttpSessionProvider.SessionsContainer
           
 
Constructor Summary
HttpSessionProvider()
           
 
Method Summary
 QueueSession createOrGetSession(javax.servlet.http.HttpSession externSessRef, String remoteQueueID)
          Looks up or creates the QueueSession that identifies a communication channel with a specific queue in a specific remote Errai Bus.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpSessionProvider

public HttpSessionProvider()
Method Detail

createOrGetSession

public QueueSession createOrGetSession(javax.servlet.http.HttpSession externSessRef,
                                       String remoteQueueID)
Description copied from interface: SessionProvider
Looks up or creates the QueueSession that identifies a communication channel with a specific queue in a specific remote Errai Bus.

Specified by:
createOrGetSession in interface SessionProvider<javax.servlet.http.HttpSession>
Parameters:
externSessRef - the session object (for example, an HttpSession) that identifies a communications link to a remote Errai Bus.
remoteQueueID - the ID of the queue in the remote bus
Returns:
the QueueSession that identifies the communication link to the given remote queue in the given remote bus. If none already exists, one is created.

Errai 3.0.1-SNAPSHOT

Copyright © 2013-2014 JBoss, a division of Red Hat. All Rights Reserved.