| | 6 | {{{ |
| | 7 | |
| | 8 | /** |
| | 9 | * A commandExecutor is the handler of an Adapter that implements the ability |
| | 10 | * to execute commands. The handler can be seperated from the adapter. |
| | 11 | * <p>This constructor may throw exceptions.</p> |
| | 12 | * <p>Copyright: Copyright (c) 2003</p> |
| | 13 | * <p>Organisation: Gnowsis.com</p> |
| | 14 | * @author Leo Sauermann |
| | 15 | * @version $Id: CommandExecutor.java,v 1.5 2004/11/26 19:27:28 sauermann Exp $ |
| | 16 | */ |
| | 17 | |
| | 18 | public interface CommandExecutor { |
| | 19 | |
| | 20 | /** |
| | 21 | * Executes a command on the uri. |
| | 22 | * @param command a command identifier (uri). |
| | 23 | * preferably one from http://www.gnowsis.org/ont/appworkspace/cmd/0.1# |
| | 24 | * @param url url of the resource that should be manipulated |
| | 25 | * @throws an Exception when something goes wrong. |
| | 26 | */ |
| | 27 | public void executeCommand(String command, String url) throws |
| | 28 | ResourceNotFoundException, ExecuteException; |
| | 29 | |
| | 30 | } |
| | 31 | |
| | 32 | |
| | 33 | |
| | 34 | }}} |