@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> |
getCommand(Class<REQ> requestClass)
Returns a
WsCommand that should handle the given requestClass. |
public <REQ extends org.hawkular.bus.common.BasicMessage> WsCommand<REQ> getCommand(Class<REQ> requestClass) throws NoCommandForMessageException
WsCommand that should handle the given requestClass.requestClass - the type of a request for which a processing WsCommand should be found by this methodWsCommand, never nullNoCommandForMessageException - if no WsCommand was foundCopyright © 2015 Red Hat. All rights reserved.