@ApplicationScoped public class WsCommands extends Object
WsCommand that can operate on messages coming over a WebSocket.| Constructor and Description |
|---|
WsCommands() |
| Modifier and Type | Method and Description |
|---|---|
<REQ extends BasicMessage> |
getCommands(Class<REQ> requestClass)
Returns a collection of
WsCommands that should handle the given requestClass. |
public <REQ extends BasicMessage> Collection<WsCommand<REQ>> getCommands(Class<REQ> requestClass) throws NoCommandForMessageException
WsCommands that should handle the given requestClass.requestClass - the type of a request for which a processing WsCommand should be found by this methodWsCommand objects, never nullNoCommandForMessageException - if no WsCommand was foundCopyright © 2014–2017 Red Hat, Inc.. All rights reserved.