public abstract class AbstractWebSocket extends Object implements OioWebSocket
Modifier and Type | Field and Description |
---|---|
protected ClosingStrategy |
closingStrategy |
protected InputStream |
inputStream |
protected OutputStream |
outputStream |
protected String |
webSocketId |
Modifier | Constructor and Description |
---|---|
protected |
AbstractWebSocket(InputStream inputStream,
OutputStream outputStream,
ClosingStrategy closingStrategy) |
Modifier and Type | Method and Description |
---|---|
void |
closeSocket()
Terminates the connection with the client and closes the socket.
|
String |
getSocketID()
A unique ID associated with the socket, which can be used for session association.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
readFrame, writeFrame
protected final String webSocketId
protected final InputStream inputStream
protected final OutputStream outputStream
protected final ClosingStrategy closingStrategy
protected AbstractWebSocket(InputStream inputStream, OutputStream outputStream, ClosingStrategy closingStrategy)
public final String getSocketID()
OioWebSocket
getSocketID
in interface OioWebSocket
public void closeSocket() throws IOException
OioWebSocket
closeSocket
in interface OioWebSocket
IOException
Copyright © 2013-2015 JBoss, a division of Red Hat. All Rights Reserved.