public class DefaultErraiWebSocketChannel extends Object implements ErraiWebSocketChannel
Session
and each one has a relation
to its HttpSession
.Modifier and Type | Field and Description |
---|---|
protected ErraiService |
erraiService |
protected javax.servlet.http.HttpSession |
httpSession |
protected QueueSession |
queueSession |
protected javax.websocket.Session |
session |
Constructor and Description |
---|
DefaultErraiWebSocketChannel(javax.websocket.Session session,
javax.servlet.http.HttpSession httpSession) |
Modifier and Type | Method and Description |
---|---|
void |
doErraiMessage(String message) |
boolean |
isConnected() |
void |
onSessionClosed() |
void |
write(String data) |
protected final javax.websocket.Session session
protected final ErraiService erraiService
protected final javax.servlet.http.HttpSession httpSession
protected QueueSession queueSession
public DefaultErraiWebSocketChannel(javax.websocket.Session session, javax.servlet.http.HttpSession httpSession)
public void doErraiMessage(String message)
doErraiMessage
in interface ErraiWebSocketChannel
public boolean isConnected()
isConnected
in interface QueueChannel
public void write(String data) throws IOException
write
in interface QueueChannel
IOException
public void onSessionClosed()
onSessionClosed
in interface ErraiWebSocketChannel
Copyright © 2013-2015 JBoss, a division of Red Hat. All Rights Reserved.