public class WebSocketManager extends Object
| Constructor and Description |
|---|
WebSocketManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
addChannel(io.undertow.websockets.core.WebSocketChannel channel)
Adds a new channel to the manager
|
void |
close(String uri)
Closes all connections for a given URI resource
|
Set<io.undertow.websockets.core.WebSocketChannel> |
getChannels(String uri)
Retrieves all channels under a given URL
|
void |
removeChannels(String uri)
Removes all URI resources for a given URL
|
void |
setChannels(String uri,
Set<io.undertow.websockets.core.WebSocketChannel> channels)
Sets the URI resources for a given URL
|
public void addChannel(io.undertow.websockets.core.WebSocketChannel channel)
channel - channel The channel to putpublic void setChannels(String uri, Set<io.undertow.websockets.core.WebSocketChannel> channels)
uri - The URI resource for the connectionchannels - The channels for the URI resourcepublic Set<io.undertow.websockets.core.WebSocketChannel> getChannels(String uri)
uri - The URI resource for the channelspublic void removeChannels(String uri)
uri - The URI resource for the connectionpublic void close(String uri)
uri - The URI resource for the connectionCopyright © 2016. All rights reserved.