@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 org.hawkular.bus.common.BasicMessage> |
getCommands(Class<REQ> requestClass)
Returns a collection of
WsCommands that should handle the given requestClass. |
public <REQ extends org.hawkular.bus.common.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 © 2015–2016 Red Hat. All rights reserved.