Examples of ExecBindingProvider


Examples of org.openhab.binding.exec.ExecBindingProvider

   * @{inheritDoc}
   */
  @Override
  public void internalReceiveCommand(String itemName, Command command) {
   
    ExecBindingProvider provider =
      findFirstMatchingBindingProvider(itemName, command);
   
    if (provider == null) {
      logger.warn("doesn't find matching binding provider [itemName={}, command={}]", itemName, command);
      return;
    }
   
    String commandLine = provider.getCommandLine(itemName, command);
   
    // fallback
    if (commandLine == null) {
      commandLine = provider.getCommandLine(itemName, WILDCARD_COMMAND_KEY);
    }
    if (commandLine != null && !commandLine.isEmpty()) {
     
      commandLine = String.format(commandLine, Calendar.getInstance().getTime(), command, itemName);
     
View Full Code Here

Examples of org.openhab.binding.exec.ExecBindingProvider

   * @return the matching binding provider or <code>null</code> if no binding
   * provider could be found
   */
  private ExecBindingProvider findFirstMatchingBindingProvider(String itemName, Command command) {
   
    ExecBindingProvider firstMatchingProvider = null;
   
    for (ExecBindingProvider provider : this.providers) {
     
      String commandLine = provider.getCommandLine(itemName, command);
     
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.