Examples of Message


Examples of org.jasig.portal.i18n.Message

   
    @ResourceMapping
    @RequestMapping(params = "action=getEntity")
    public ModelAndView getEntity(@RequestParam("id") String code, @RequestParam("locale") String localeStr) {
        final Locale locale = LocaleManager.parseLocale(localeStr);
        final Message message = messageDao.getMessage(code, locale);
        return new ModelAndView("json", "message", message);
    }
View Full Code Here

Examples of org.javagroups.Message

                if ( log.isDebugEnabled() )
                {
                    log.debug( "Wating for messages." );
                }

                Message mes = null;
                try
                {
                    Object obj = javagroups.receive( 0 );
                    if ( obj != null && obj instanceof org.javagroups.Message )
                    {
View Full Code Here

Examples of org.jboss.aerogear.unifiedpush.message.Message

            return;
        }

        final iOSVariant iOSVariant = (iOSVariant) variant;

        Message message = pushMessage.getMessage();
        PayloadBuilder builder = APNS.newPayload()
                // adding recognized key values
                .alertBody(message.getAlert()) // alert dialog, in iOS
                .badge(message.getBadge()) // little badge icon update;
                .sound(message.getSound()) // sound to be played by app
                .category(message.getActionCategory()); // iOS8: User Action category

                // apply the 'content-available:1' value:
                if (message.isContentAvailable()) {
                    // content-available is for 'silent' notifications and Newsstand
                    builder = builder.instantDeliveryOrSilentNotification();
                }

                builder = builder.customFields(message.getUserData()); // adding other (submitted) fields

        // we are done with adding values here, before building let's check if the msg is too long
        if (builder.isTooLong()) {
            // invoke the error callback and return, as it is pointless to send something out
            callback.onError("Nothing sent to APNs since the payload is too large");
View Full Code Here

Examples of org.jboss.as.console.client.core.message.Message

        });
    }

    public static void info(String message) {
        getMessageCenter().notify(
                new Message(message, Message.Severity.Info)
        );
    }
View Full Code Here

Examples of org.jboss.blacktie.jatmibroker.core.transport.Message

  public synchronized void send(String replyto_ior, short rval, int rcode,
      byte[] idata, int ilen, int cd, int flags, String type,
      String subtype) {
    log.debug("Received: " + callbackIOR);
    Message message = new Message();
    message.cd = cd;
    message.replyTo = replyto_ior;
    message.flags = flags;
    message.control = null;// TODO
    message.rval = rval;
View Full Code Here

Examples of org.jboss.dashboard.commons.message.Message

                // Show import messages.
                MessageList messages = importResults.getMessages();
                Locale locale = LocaleManager.currentLocale();
                Iterator it = messages.iterator();
                while (it.hasNext()) {
                    Message message = (Message) it.next();
                    switch (message.getMessageType()) {
                        case Message.ERROR: messagesHandler.addError(message.getMessage(locale)); break;
                        case Message.WARNING: messagesHandler.addWarning(message.getMessage(locale)); break;
                        case Message.INFO: messagesHandler.addMessage(message.getMessage(locale)); break;
                    }
                }
            } catch (Exception e) {
                log.error("Error importing KPIs from file (" + file + ")", e);
                messagesHandler.addError(new ExportHandlerMessage("import.kpis.importAbortedError", new Object[] {}).getMessage(LocaleManager.currentLocale()));
View Full Code Here

Examples of org.jboss.errai.bus.client.Message

                if (a instanceof JSONObject) {
                    final JSONObject eMap = (JSONObject) a;
                    final String subject = eMap.keySet().iterator().next();

                    list.add(new Message() {
                        public String getSubject() {
                            return subject;
                        }

                        public Object getMessage() {
View Full Code Here

Examples of org.jboss.errai.bus.client.api.Message

    if (!queueRunning) {
      JSONStreamEncoder.encode(new QueueStopMessage().getParts(), outstream);
      return;
    }

    Message m = null;

    checkSession();

    if (lock.tryAcquire()) {
      outstream.write('[');

      int payLoadSize = 0;
      try {

        if (wait) {
          m = queue.poll(45, TimeUnit.SECONDS);

        }
        else {
          m = queue.poll();
        }

        if (m instanceof HasEncoded) {
          outstream.write(((HasEncoded) m).getEncoded().getBytes());
        }
        else if (m instanceof QueueStopMessage) {
          JSONStreamEncoder.encode(m.getParts(), outstream);
          queueRunning = false;
          bus.closeQueue(this);
        }
        else if (m != null) {
          JSONStreamEncoder.encode(m.getParts(), outstream);
        }

        if (_windowPolling) {
          windowPolling = true;
          _windowPolling = false;
        }
        else if (windowPolling) {
          while (!queue.isEmpty() && payLoadSize < MAXIMUM_PAYLOAD_SIZE
                  && !isWindowExceeded()) {
            outstream.write(',');
            if ((m = queue.poll()) instanceof HasEncoded) {
              outstream.write(((HasEncoded) m).getEncoded().getBytes());
            }
            else {
              JSONStreamEncoder.encode(m.getParts(), outstream);
            }
            payLoadSize++;

            try {
              if (queue.isEmpty())
View Full Code Here

Examples of org.jboss.errai.bus.client.api.messaging.Message

      synchronized (queue) {
        if (deferredQueue.containsKey(queue)) {
          final List<Message> deferredMessages = deferredQueue.get(queue);
          final Iterator<Message> dmIter = deferredMessages.iterator();

          Message m;
          while (dmIter.hasNext()) {
            if ((m = dmIter.next()).hasPart(MessageParts.PriorityProcessing.toString())) {
              queue.offer(m);
              dmIter.remove();
            }
View Full Code Here

Examples of org.jboss.messaging.core.contract.Message

  
   private static boolean checkExpiredOrReachedMaxdeliveries(MessageProxy proxy,
                                                             SessionDelegate del,
                                                             int maxDeliveries, boolean shouldCancel)
   {
      Message msg = proxy.getMessage();
     
      boolean expired = msg.isExpired();
     
      boolean reachedMaxDeliveries = proxy.getDeliveryCount() == maxDeliveries;
     
      if (expired || reachedMaxDeliveries)
      {
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.