Package jadex.bridge.component.impl
Class RemoteExecutionComponentFeature.RxHandler
- java.lang.Object
-
- jadex.bridge.component.impl.RemoteExecutionComponentFeature.RxHandler
-
- All Implemented Interfaces:
IMessageHandler
,IUntrustedMessageHandler
- Enclosing class:
- RemoteExecutionComponentFeature
protected class RemoteExecutionComponentFeature.RxHandler extends java.lang.Object implements IUntrustedMessageHandler
Handle RX Messages. Also handles untrusted messages and does its own security checks.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
RxHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
checkSecurity(ISecurityInfo secinfos, IMsgHeader header, java.lang.Object msg)
Check if it is ok to execute a command.void
handleMessage(ISecurityInfo secinfos, IMsgHeader header, java.lang.Object msg)
Handle the message.boolean
isHandling(ISecurityInfo secinfos, IMsgHeader header, java.lang.Object msg)
Test if handler should handle a message.boolean
isRemove()
Test if handler should be removed.
-
-
-
Method Detail
-
isHandling
public boolean isHandling(ISecurityInfo secinfos, IMsgHeader header, java.lang.Object msg)
Test if handler should handle a message.- Specified by:
isHandling
in interfaceIMessageHandler
- Returns:
- True if it should handle the message.
-
isRemove
public boolean isRemove()
Test if handler should be removed.- Specified by:
isRemove
in interfaceIMessageHandler
- Returns:
- True if it should be removed.
-
handleMessage
public void handleMessage(ISecurityInfo secinfos, IMsgHeader header, java.lang.Object msg)
Handle the message.- Specified by:
handleMessage
in interfaceIMessageHandler
- Parameters:
header
- The header.msg
- The message.
-
checkSecurity
protected boolean checkSecurity(ISecurityInfo secinfos, IMsgHeader header, java.lang.Object msg)
Check if it is ok to execute a command.
-
-