Examples of Message


Examples of org.mokai.Message

      return true;
    }

    @SuppressWarnings("rawtypes")
    private void produceMessage(HttpServletRequest request, boolean decodeParams) throws IOException {
      Message message = new Message();

      Enumeration paramNames = request.getParameterNames();
      while (paramNames.hasMoreElements()) {
        String paramName = (String) paramNames.nextElement();

        // check if there is a mapping for the key
        String key = paramName;
        if (configuration.getMapper().containsKey(key)) {
          key = configuration.getMapper().get(key);
        }

        String value = request.getParameter(paramName);
        if (decodeParams) {
          value = decodeParam(value, request.getCharacterEncoding());
        }

        message.setProperty(key, value);
      }

      messageProducer.produce(message);
    }
View Full Code Here

Examples of org.moltools.apps.probemaker.messages.Message

    "Temperature calculation"); //$NON-NLS-1$
    ProbeMakerTarget t = null;
    try {
      t = (ProbeMakerTarget) p.getTarget();     
      if (p.getTarget() == null) {
        ProbeMakerPropertyUtils.addMessage(p,new Message(
            "No target found. Calculated hybridization temperature based on full match", //$NON-NLS-1$
            mt, Message.ALERT));
      }           
    }
    catch (ClassCastException ccx) {     
      ProbeMakerPropertyUtils.addMessage(p,new Message(
          "Not a ProbeMakerTarget. Calculated hybridization temperature based on full match", //$NON-NLS-1$
          mt, Message.ALERT));
    }

    try {
View Full Code Here

Examples of org.msgpack.annotation.Message

      throw new TemplateBuildException("Cannot build template of primitive type: " + targetClass.getName());
  }
    }

    protected FieldOption getFieldOption(Class<?> targetClass) {
  Message m = targetClass.getAnnotation(Message.class);
  if (m == null) {
      return FieldOption.DEFAULT;
  }
  MessagePackMessage mpm = targetClass.getAnnotation(MessagePackMessage.class);
  if (mpm == null) {
      return FieldOption.DEFAULT;
  }
  // TODO #MN
  return m.value();
    }
View Full Code Here

Examples of org.mule.config.i18n.Message

public class MessagesTestCase extends AbstractMuleTestCase
{
    public void testMessageLoading() throws Exception
    {
        Message message = CoreMessages.authFailedForUser("Fred");
        assertEquals("Authentication failed for principal Fred", message.getMessage());
        assertEquals(135, message.getCode());
    }
View Full Code Here

Examples of org.mule.module.pgp.Message

        return MessageFactory.getMessage(raw);
    }

    private String getUnencryptedMessageWithoutSignature(PGPAuthentication auth) throws Exception
    {
        Message msg = (Message)auth.getCredentials();

        if (msg instanceof SignedMessage)
        {
            msg = ((SignedMessage)msg).getContents();
        }
View Full Code Here

Examples of org.nasutekds.messages.Message

  public DN activeValue()
         throws ConfigException
  {
    if ((activeValues == null) || activeValues.isEmpty())
    {
      Message message = ERR_CONFIG_ATTR_NO_STRING_VALUE.get(getName());
      throw new ConfigException(message);
    }

    if (activeValues.size() > 1)
    {
      Message message = ERR_CONFIG_ATTR_MULTIPLE_STRING_VALUES.get(getName());
      throw new ConfigException(message);
    }

    return activeValues.get(0);
  }
View Full Code Here

Examples of org.nemesis.forum.Message

   *
   * @return the next message in the interation.
   * @throws NoSuchElementException if the iteration has no more elements.
   */
  public Object next() throws java.util.NoSuchElementException {
    Message message = null;
    if (nextMessage != null) {
      message = nextMessage;
      nextMessage = null;
    } else {
      message = getNextMessage();
View Full Code Here

Examples of org.objectweb.celtix.common.i18n.Message

                DestinationSequence seq = new DestinationSequence(sid, acksTo,
                                                                  lm == null ? null : lm.toBigInteger(), ack);
                seqs.add(seq);                                                
            }
        } catch (SQLException ex) {
            LOG.log(Level.WARNING, new Message("SELECT_DEST_SEQ_FAILED_MSG", LOG).toString(), ex);
        }
        return seqs;
    }
View Full Code Here

Examples of org.objectweb.joram.client.jms.Message

  public String getMessageDigest(String subName,
                                 String msgId) throws AdminException, ConnectException, JMSException {
    GetSubscriptionMessageRep reply =
      (GetSubscriptionMessageRep) doRequest(new GetSubscriptionMessage(proxyId, subName, msgId, true));
    Message msg =  Message.wrapMomMessage(null, reply.getMessage());

    StringBuffer strbuf = new StringBuffer();
    strbuf.append("Message: ").append(msg.getJMSMessageID());
    strbuf.append("\n\tTo: ").append(msg.getJMSDestination());
    strbuf.append("\n\tCorrelationId: ").append(msg.getJMSCorrelationID());
    strbuf.append("\n\tDeliveryMode: ").append(msg.getJMSDeliveryMode());
    strbuf.append("\n\tExpiration: ").append(msg.getJMSExpiration());
    strbuf.append("\n\tPriority: ").append(msg.getJMSPriority());
    strbuf.append("\n\tRedelivered: ").append(msg.getJMSRedelivered());
    strbuf.append("\n\tReplyTo: ").append(msg.getJMSReplyTo());
    strbuf.append("\n\tTimestamp: ").append(msg.getJMSTimestamp());
    strbuf.append("\n\tType: ").append(msg.getJMSType());
    return strbuf.toString();
  }
View Full Code Here

Examples of org.objectweb.joram.mom.messages.Message

  protected DMQManager cleanPendingMessage(long currentTime) {
    int index = 0;

    DMQManager dmqManager = null;

    Message message = null;
    while (index < messages.size()) {
      message = (Message) messages.get(index);
      if (! message.isValid(currentTime)) {
        messages.remove(index);

        if (dmqManager == null)
          dmqManager = new DMQManager(dmqId, getId());
        nbMsgsSentToDMQSinceCreation++;
        message.delete();
        dmqManager.addDeadMessage(message.getFullMessage(), MessageErrorConstants.EXPIRED);

        if (logger.isLoggable(BasicLevel.DEBUG))
          logger.log(BasicLevel.DEBUG,
                     "Removes expired message " + message.getIdentifier(), new Exception());
      } else {
        index++;
      }
    }
    return dmqManager;
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.