Package com.google.appengine.api.xmpp

Examples of com.google.appengine.api.xmpp.Message


    //
    boolean isAvailable = UserPresence.isUserAvailable(jid.getId());
    if (isAvailable){
     
      MessageBuilder mb = new MessageBuilder();
      Message reply = mb.withRecipientJids(jid)
        .withMessageType(MessageType.CHAT)
        .withBody(msg)
        .withFromJid(new JID("talkfeed@appspot.com"))
        .build();
     
View Full Code Here


      return false;
    }

    JID jid = new JID(Const.EMAIL);

    Message msg = new MessageBuilder().withRecipientJids(jid)
        .withBody(msgBody).build();

    boolean messageSent = false;

    if (xmpp.getPresence(jid).isAvailable()) {
View Full Code Here

    action = action.replace("/","");
   
    //MESSAGE
    if (action.equals("messagechat")) {
      //parse new Jabber message
      Message message = TalkService.parseMessage(req);
     
      //dispatch message
      MessageDispatcher.getInstance().dispatch(message);
      return;
    }
View Full Code Here

  public void envoyer(String message) {

    JID jid = new JID("julien.plagnes@gmail.com");

    Message msg = new MessageBuilder().withRecipientJids(jid)
        .withBody(message).build();

    boolean messageSent = false;
    XMPPService xmpp = XMPPServiceFactory.getXMPPService();
    if (xmpp.getPresence(jid).isAvailable()) {
View Full Code Here

      message = "Message vide";
    }

    JID jid = new JID("remi.bastide@gmail.com");

    Message msg = new MessageBuilder().withRecipientJids(jid)
        .withBody(message).build();

    boolean messageSent = false;
    XMPPService xmpp = XMPPServiceFactory.getXMPPService();
    if (xmpp.getPresence(jid).isAvailable()) {
View Full Code Here

 
  public void envoyer(String message){
   
    JID jid = new JID("coralie.ratier@gmail.com");

        Message msg = new MessageBuilder()
            .withRecipientJids(jid)
            .withBody(message)
            .build();
               
        boolean messageSent = false;
View Full Code Here

      message = "Message vide";
    }
   
    JID jid = new JID("julien.plagnes@gmail.com");

        Message msg = new MessageBuilder()
            .withRecipientJids(jid)
            .withBody(message)
            .build();
               
        boolean messageSent = false;
View Full Code Here

public class ReceiveChatMessage extends HttpServlet {
  public void doPost(HttpServletRequest req, HttpServletResponse resp)
      throws IOException {

    XMPPService xmpp = XMPPServiceFactory.getXMPPService();
    Message message = xmpp.parseMessage(req);

    JID fromJid = message.getFromJid();
    String body = message.getBody();

    JID jid = new JID("julien.plagnes@gmail.com");

    Message msg = new MessageBuilder().withRecipientJids(jid)
        .withBody("Vous m'avez dit \"" + body + "\"").build();

    boolean messageSent = false;
    XMPPService xmpp1 = XMPPServiceFactory.getXMPPService();
    if (xmpp1.getPresence(jid).isAvailable()) {
View Full Code Here

    public void doPost(HttpServletRequest req, HttpServletResponse resp) throws IOException {
     
       
       
        XMPPService xmpp = XMPPServiceFactory.getXMPPService();
        Message message = xmpp.parseMessage(req);

        JID fromJid = message.getFromJid();
        String body = message.getBody();
       
        JID jid = new JID("coralie.ratier@gmail.com");

        Message msg = new MessageBuilder()
            .withRecipientJids(jid)
            .withBody("Vous m'avez dit \""+body+"\"")
            .build();
               
        boolean messageSent = false;
View Full Code Here

        log.info("XmppErrorServlet");

        DatastoreService datastore = DatastoreServiceFactory.getDatastoreService();
        XMPPService xmpp = XMPPServiceFactory.getXMPPService();

        Message message = xmpp.parseMessage(req);
        Entity statusEntity = MainPageServlet.getStatusEntity();
        statusEntity.setProperty("last_error", message.getBody());
        statusEntity.setProperty("Last_error_datetime", new Date());
        datastore.put(statusEntity);
    }
View Full Code Here

TOP

Related Classes of com.google.appengine.api.xmpp.Message

Copyright © 2018 www.massapicom. 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.