Examples of SimpleMessage


Examples of br.com.caelum.vraptor.validator.SimpleMessage

      for (ConstraintViolation<Object> v : violations) {
        BeanValidatorContext ctx = new BeanValidatorContext(v);
        String msg = interpolator.interpolate(v.getMessageTemplate(), ctx, locale);
        String category = extractCategory(methodInfo.getValuedParameters(), v);
        validator.add(new SimpleMessage(category, msg));
        logger.debug("added message {}={} for contraint violation", category, msg);
      }
    }
  }
View Full Code Here

Examples of com.exedosoft.plat.agent.message.SimpleMessage

  }

 
  private Message getInMessage(){
   
    SimpleMessage sm = null;
    try {
      ObjectInputStream serverInputStream = new ObjectInputStream(getSocket()
          .getInputStream());
      sm = (SimpleMessage) serverInputStream.readObject();
    } catch (UnknownHostException e) {
View Full Code Here

Examples of com.google.i18n.pseudolocalization.message.SimpleMessage

   *
   * @param text
   * @return localized text
   */
  public String localize(String text) {
    SimpleMessage message = new SimpleMessage(text);
    localize(message);
    return message.getText();
  }
View Full Code Here

Examples of com.sos.scheduler.engine.kernel.event.SimpleMessage

public class LogEvent extends AbstractEvent {
    private final Message message;


    public LogEvent(String message) {
        this.message = new SimpleMessage(message);
    }
View Full Code Here

Examples of com.sos.scheduler.engine.kernel.event.SimpleMessage

        return throwable;
    }

   
    @Override public final Message getMessage() {
        if (message == nullmessage = new SimpleMessage(throwable.toString());
        return message;
    }
View Full Code Here

Examples of com.sos.scheduler.engine.kernel.event.SimpleMessage

import com.sos.scheduler.engine.kernel.event.SimpleMessage;


public class UnknownCommandException extends SchedulerException {
    public UnknownCommandException(String commandName) {
        super(new SimpleMessage("SCHEDULER-105", commandName));
    }
View Full Code Here

Examples of com.sun.messaging.ums.simple.SimpleMessage

        Map map = this.getHeadersAsMap(req);

        //String text = this.readHttpBody(req);
        InputStream in = req.getInputStream();

        SimpleMessage msg = SimpleMessageFactory.createMessage(map, in);

        in.close();

        //String text = msg.getText();

        String destName = msg.getMessageProperty(Constants.DESTINATION_NAME);
        boolean isTopic = msg.isTopicDomain();

        String clientId = msg.getMessageProperty(Constants.CLIENT_ID);

        if (UMSServiceImpl.debug) {
            logger.info("Simple messaging sid=" + clientId);
        }

        if (msg.isSendService()) {
            isSend = true;
        } else if (msg.isReceiveService()) {
            isReceive = true;
        } else if (msg.isLoginService()) {
            isLogin = true;
        } else if (msg.isCloseService()) {
            isClose = true;
        } else if (msg.isAdminService()) {
            isAdmin = true;
        } else if (msg.isCommitService()) {
            isCommit = true;
        } else if (msg.isRollbackService()) {
            isRollback = true;
        } else {
            isValidRequest = false;
        }

        try {

            //logger.info("request servlet path=" + req.getServletPath());

            if (isValidRequest == false) {

                status = resp.SC_BAD_REQUEST;
                //throw exception  
                respMsg = "Invalid query string., see http://host:port/<context>/";

            } else {

                if (isSend) {

                    //String text = req.getParameter(Constants.HTTP_GET_SEND_TEXT);

                    String text = msg.getText();

                    if (UMSServiceImpl.debug) {
                        logger.info("Simple messaging, sending text=" + text);
                    }
View Full Code Here

Examples of net.kano.joustsim.oscar.oscar.service.icbm.SimpleMessage

                    .getImConversation(new Screenname(to));
            imConversation.open();
            imConversation.addConversationListener(new AimConversationListener());
            if (imConversation.canSendMessage()) {
                messageCount++;
                imConversation.sendMessage(new SimpleMessage(message));
            } else {
                log.error("Cound not send the message to: " + to);
                throw new IMException("Cound not send the message to: " + to);
            }
            imConversation.close();
View Full Code Here

Examples of net.sourceforge.stripes.action.SimpleMessage

        return new RedirectResolution(CaptureInvoice.class);
      } catch (Exception e) {
          String sStackTrace = "";
          try { sStackTrace = StackTraceUtil.getStackTrace(e); } catch (Exception ignore) { }
        Log.out.error(e.getClass().getName()+" "+e.getMessage()+"\n"+sStackTrace);
        getContext().getMessages().add(new SimpleMessage("ERROR "+e.getMessage(), order));
        return new RedirectResolution(BuyCredits.class);
        } finally { close(); }
  } 
View Full Code Here

Examples of org.apache.james.mailbox.store.mail.model.impl.SimpleMessage

        flags.add(Flags.Flag.RECENT);
        flags.add(Flags.Flag.FLAGGED);
        flags.add("userFlag1");
        flags.add("userFlag2");
        UUID uuid = UUID.randomUUID();
        final SimpleMessage message = new SimpleMessage(new Date(), 100, 10, null, flags, new PropertyBuilder(), uuid);
        Put put = flagsToPut(message, flags);
        //test for the system flags
        assertTrue(put.has(MESSAGES_META_CF, FLAGS_SEEN, MARKER_PRESENT));
        assertTrue(put.has(MESSAGES_META_CF, FLAGS_DRAFT, MARKER_PRESENT));
        assertTrue(put.has(MESSAGES_META_CF, FLAGS_RECENT, MARKER_PRESENT));
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.