Package net.sourceforge.prowl.api

Examples of net.sourceforge.prowl.api.ProwlClient


    public Avviso(DeliveryMethod deliveryMethod) {
        apiKey = "";
        applicationName = "Avviso";
        this.deliveryMethod = deliveryMethod;
        if (deliveryMethod == DeliveryMethod.PROWL) {
            prowlClient = new ProwlClient();
            prowlClient.setProwlUrl(PROWL_URL);
        }
    }
View Full Code Here


      normalizedPriority = 2;
      logger.info("Prowl-Notification priority '{}' is invalid - normalized value to '{}'", priority, normalizedPriority);
    }
   
    if (ProwlActionService.isProperlyConfigured) {
      ProwlClient client = new ProwlClient();
      if (StringUtils.isNotBlank(Prowl.url)) {
        client.setProwlUrl(Prowl.url);
      }
     
      ProwlEvent event = new DefaultProwlEvent(
          apiKey, "openhab", subject,
          message, normalizedPriority);
     
      try {
        String returnMessage = client.pushEvent(event);
        logger.info(returnMessage);
        success = true;
      }
      catch (ProwlException pe) {
        logger.error("pushing prowl event throws exception", pe);
View Full Code Here

TOP

Related Classes of net.sourceforge.prowl.api.ProwlClient

Copyright © 2018 www.massapicom. 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.