public class ResourcePathDestinationWsCommand extends Object implements WsCommand<ResourcePathDestination>
WsCommand that transfers messages implementing ResourcePathDestination from a UI WebSocket to a bus
endpoint to be handled by a feed. The feedId is extracted from ResourcePathDestination.getResourcePath()
using methods in CanonicalPath.
This particular command implementation always puts the message on the
Constants.FEED_COMMAND_QUEUE bus endpoint.
| Constructor and Description |
|---|
ResourcePathDestinationWsCommand() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute(BasicMessageWithExtraData<ResourcePathDestination> message,
WsCommandContext context)
Performs the command for the given
message. |
public void execute(BasicMessageWithExtraData<ResourcePathDestination> message, WsCommandContext context) throws Exception
WsCommandmessage.execute in interface WsCommand<ResourcePathDestination>message - the request to executecontext - some context data that can be useful for the command to be able to execute the requestException - if failed to execute the operationCopyright © 2014–2016 Red Hat, Inc.. All rights reserved.