Examples of Message


Examples of com.dotcms.repackage.org.jgroups.Message

      channel.setReceiver(this);
     
      channel.connect(Config.getStringProperty("CACHE_JGROUPS_GROUP_NAME","dotCMSCluster"));
      channel.setOpt(JChannel.LOCAL, false);
      useJgroups = true;
      channel.send(new Message(null, null, TEST_MESSAGE));
      Address channelAddress = channel.getAddress();
      PhysicalAddress physicalAddr = (PhysicalAddress)channel.downcall(new Event(Event.GET_PHYSICAL_ADDRESS, channelAddress));
      String[] addrParts = physicalAddr.toString().split(":");
      String usedPort = addrParts[addrParts.length-1];
View Full Code Here

Examples of com.dotcms.repackage.org.xbill.DNS.Message

    res.setTimeout(10);
    Name name = ReverseMap.fromAddress(hostIp);
    int type = Type.PTR;
    int dclass = DClass.IN;
    Record rec = Record.newRecord(name, type, dclass);
    Message query = Message.newQuery(rec);
    Message response = res.send(query);

    Record[] answers = response.getSectionArray(Section.ANSWER);
    if (answers.length == 0)
      return hostIp;
    else
      return answers[0].rdataToString();
  }
View Full Code Here

Examples of com.dragome.model.interfaces.Message

    }
    catch (FormatException e)
    {
      if (e instanceof Message)
      {
        Message m= (Message) e;
        results.add(new ErrorMessage(m.getMessage(), m.getAdditionalInfo()));
      }
      else
      {
        results.add(new ErrorMessage(e.getMessage()));
      }
View Full Code Here

Examples of com.dtikhonov.model.Message

    public void setResult(String result){
        this.result = result;
    }
    @RequestMapping(value="/greeting", method=RequestMethod.GET)
    public ModelAndView greeting() {
        return new ModelAndView("greeting", "command", new Message());
    }
View Full Code Here

Examples of com.dyuproject.protostuff.parser.Message

                    throw new IllegalArgumentException("By parameter of attribute @Extend is not specified");

                if (!(byMessageRef instanceof Message))
                    throw new IllegalArgumentException("By parameter have a non Message reference in your @Extend annotation");

                Message base = (Message) byMessageRef;
                String result = extendBy(group, message, base);
                if (result != null && result.length() > 0)
                    data = injectAfterAnnotation(message, base, data, result);
            }

            Object extOpt = message.getExtraOption("extends");
            if (extOpt != null)
            {
                if (!(extOpt instanceof Message))
                    throw new IllegalArgumentException("Option extends specified not a message reference");

                Message base = (Message) extOpt;
                String result = extendBy(group, message, base);
                if (result != null && result.length() > 0)
                    data = injectAfterOption(message, base, data, result);
            }
        }
View Full Code Here

Examples of com.elasticinbox.core.model.Message

  @Override
  public Map<MailAddress, DeliveryReturnCode> deliver(MailEnvelope env, final String deliveryId)
      throws IOException
  {
    StopWatch stopWatch = Activator.getDefault().getStopWatch();
    Message message;

    try {
      MimeParser parser = new MimeParser();
      parser.parse(env.getMessageInputStream());
      message = parser.getMessage();
    } catch (MimeParserException mpe) {
      logger.error("DID" + deliveryId + ": unable to parse message: ", mpe);
      throw new DeliveryException("Unable to parse message: " + mpe.getMessage());
    } catch (IOException ioe) {
      logger.error("DID" + deliveryId + ": unable to read message stream: ", ioe);
      throw new DeliveryException("Unable to read message stream: " + ioe.getMessage());
    }

    message.setSize((long) env.getSize()); // update message size

    FilterProcessor<Message> processor = new FilterProcessor<Message>();
    //processor.add(new NotificationMailFilter());
    processor.add(new SpamMailFilter());
    processor.add(new DefaultMailFilter());
View Full Code Here

Examples of com.enioka.jqm.jpamodel.Message

        em.getTransaction().begin();
        History h = Helpers.createHistory(job, em, status, endDate);
        jqmlogger.trace("An History was just created for job instance " + h.getId());

        // A last message (directly created on History, not JI)
        Message m = new Message();
        m.setHistory(h);
        m.setTextMessage("Status updated: " + status);
        em.persist(m);

        // Purge the JI (using query, not em - more efficient + avoid cache issues on MessageJI which are not up to date here)
        em.getTransaction().commit();
        em.getTransaction().begin();
View Full Code Here

Examples of com.ettrema.mail.Message

        if( inbox != null ) {
            int num = 1;
            Collection<MessageResource> messageResources = inbox.getMessages();
            if( messageResources != null ) {               
                for (MessageResource mr : messageResources) {
                    Message m = new Message(mr, num++);
                    popSession.messages.add(m);
                }
            }
            log.debug("session messages: " + popSession.messages.size());
        } else {
View Full Code Here

Examples of com.excilys.ebi.bank.web.messages.Message

  @RequestMapping("/public/loginFailure.html")
  public String loginFailure(ModelMap model, HttpSession session, HttpServletResponse res, RedirectAttributes redirectAttributes) {

    Exception loginException = Exception.class.cast(session.getAttribute(WebAttributes.AUTHENTICATION_EXCEPTION));

    Message message = handleException(loginException);
    MessageHelper.addFlashMessage(redirectAttributes, message);

    return "redirect:/public/login.html";
  }
View Full Code Here

Examples of com.exedosoft.plat.agent.Message

 
  @Override
  public Message excute(Message aMsg) {

   
    Message aMessage = null;
    try {
      ObjectOutputStream serverOutputStream = new ObjectOutputStream(
          getSocket().getOutputStream());
      serverOutputStream.writeObject(aMsg);
     
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.