Examples of sendMessage()


Examples of org.menacheri.jetserver.communication.MessageSender.Fast.sendMessage()

    if (guaranty.getGuaranty() == FAST.getGuaranty())
    {
      Fast udpSender = session.getUdpSender();
      if (null != udpSender)
      {
        udpSender.sendMessage(event);
      }
      else
      {
        LOG.trace(
            "Going to discard event: {} since udpSender is null in session: {}",
View Full Code Here

Examples of org.nfctools.spi.tama.nfcip.TamaNfcIpCommunicator.sendMessage()

    byte[] generalBytes = new byte[llcHeader.length + llcParameters.length];
    System.arraycopy(llcHeader, 0, generalBytes, 0, llcHeader.length);
    System.arraycopy(llcParameters, 0, generalBytes, llcHeader.length, llcParameters.length);

    log.info("reply...");
    Integer statusCode = nfcIpCommunicator.sendMessage(new SetGeneralBytesReq(generalBytes));
    if (statusCode.intValue() != 0)
      throw new IOException("status code: " + statusCode);
  }

  protected Object[] extractLlcParameters(byte[] incomingGeneralBytes) {
View Full Code Here

Examples of org.openeai.loggingutils.MailService.sendMessage()

      buf.append("\n");
      buf.append(emailBody);
      buf.append("\n");
      MailService mailService = new MailService(this.getFromAddr(), this.getToAddr() , "Error in EnterpriseSyncErrorLogger", buf.toString());
      mailService.setMailHost(this.getMailHost());
      mailService.sendMessage();
    }
    catch (Exception exc) {
      logger.info("Error sending email message - " + exc);
    }
  }
View Full Code Here

Examples of org.openhab.binding.rfxcom.internal.connector.RFXComSerialConnector.sendMessage()

         
          logger.debug("Transmitting data: {}",
              DatatypeConverter.printHexBinary(data));

          setResponseMessage(null);
          connector.sendMessage(data);
         
        } catch (RFXComException e) {
          e.printStackTrace();
        } catch (IOException e) {
          logger.error("Message sending to RFXCOM controller failed.", e)
View Full Code Here

Examples of org.pircbotx.PircBotX.sendMessage()

        // react to BZs in the messages
        Matcher bzMatcher = BZ_PATTERN.matcher(message);
        while (bzMatcher.find()) {
            final String response = bzResolver.resolve(bzMatcher.group(2));
            bot.sendMessage(event.getChannel(), response);
        }

        // react to Jira bugs in the messages
        Matcher jiraMatcher = JIRA_PATTERN.matcher(message);
        while (jiraMatcher.find()) {
View Full Code Here

Examples of org.red5.server.api.so.ISharedObject.sendMessage()

    if (meetingScope != null) {
      if (meetingScope.hasChildScope(ScopeType.SHARED_OBJECT, msg.getSharedObjectName())) {
        ISharedObject so = getSharedObject(meetingScope, msg.getSharedObjectName());
        if (so != null) {
          System.out.println("*********** Sending [" + msg.getMessageName() + "] using shared object.");
          so.sendMessage(msg.getMessageName(), msg.getMessage());
        } else {
          System.out.println("**** Cannot get SO for [" + msg.getSharedObjectName() + "]");
        }
      } else {
        System.out.println("**** No SO scope for [" + msg.getSharedObjectName() + "]");
View Full Code Here

Examples of org.sis.ancmessaging.server.utility.SmsMessageHandler.sendMessage()

            emergency.setMother(mother);

            emergencyDao.saveEmergency(emergency);

            try {
                messageHandler.sendMessage();
                mainForm.setLogText("\n1 emergency sent to HC");
            } catch (Exception e) {
                mainForm.setLogText("\nError: " + "\n" + e.getMessage());
            }
        }
View Full Code Here

Examples of org.sonatype.nexus.test.utils.RoutesMessageUtil.sendMessage()

    RepositoryRouteMemberRepository memberRepo1 = new RepositoryRouteMemberRepository();
    memberRepo1.setId("nexus-test-harness-repo");
    resource.addRepository(memberRepo1);

    RoutesMessageUtil routesUtil = new RoutesMessageUtil(this.getXMLXStream(), MediaType.APPLICATION_XML);
    Status status = routesUtil.sendMessage(Method.POST, resource).getStatus();
    Assert.assertTrue("Unable to create a route " + status, status.isSuccess());

    List<RepositoryRouteListResource> routes = RoutesMessageUtil.getList();
    Assert.assertFalse("No itens to be tested", routes.isEmpty());
View Full Code Here

Examples of org.spout.api.command.CommandSource.sendMessage()

  public void setCommand(String cmd, Cause<?> cause) {
    if (cause != null && cause.getSource() instanceof CommandSource) {
      CommandSource cmdSource = (CommandSource) cause.getSource();
      String prefix = VanillaPlugin.getInstance().getPrefix();
      if (!cmdSource.hasPermission("vanilla.commandblock." + cmd.split(" ")[0])) {
        cmdSource.sendMessage(prefix + ChatStyle.RED + " You don't have permission to do that.");
        return;
      }
      cmdSource.sendMessage(prefix + ChatStyle.WHITE + "CommandDescription set: " + ChatStyle.GREEN + cmd);
    }
View Full Code Here

Examples of org.spout.api.entity.Player.sendMessage()

    float duration = (float) args.popDouble("duration");
    int amp = args.popInteger("amp", 2);
    args.assertCompletelyParsed();

    player.add(Effects.class).add(new EntityEffect(type, amp, duration));
    player.sendMessage(ChatStyle.GREEN + "Applied effect '" + type + "' with amplitude '" + amp + "' for '" + duration + "' seconds.");
  }

  @CommandDescription (aliases = {"testscoreboard", "tsb"}, desc = "Not to be confused with '/scoreboard'")
  @Permissible ("vanilla.command.debug")
  @Filter (PlayerFilter.class)
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.