Package nu.fw.jeti.jabber.elements

Examples of nu.fw.jeti.jabber.elements.Extension


    clearCurrentChars();
  }

  public Extension build() throws InstantiationException
  {
    Extension e = builder.build();
    builder.reset();
    return e;
  }
View Full Code Here


   * @param Object a value being returned to the parent - the parent is
   * meant to interpret this result.
   */
  public Extension build()
  {
    Extension e = builder.build();
    builder.reset();
    return e;
  }
View Full Code Here

//    clearCurrentChars();
//  }

    public Extension build()
    {
        Extension e;
        if (xdata != null) {
            e = new IQMUC(getInstance(), xdata);
        } else {
            e = new IQMUC(getInstance(), items, errorCode, errorDescription);
        }
View Full Code Here

//    clearCurrentChars();
//  }

  public Extension build()
  {
    Extension e = new XConference(jid);
    reset();
    return e;
  }
View Full Code Here

    if(extension instanceof XData) xdata = (XData) extension;
  }

  public Extension build()
  {
    Extension e = null;
    if(xdata != null)
    {
      e = new IQSearch(fields,xdata);
    }
    else if (list !=null)e = new IQSearch(list);
View Full Code Here

  }
 
  public Extension build()
  {
    clearCurrentChars();
    Extension e = builder.build();
    builder.reset();
    return e;
  }
View Full Code Here

      boolean delayed=false;
      if(message.hasExtensions())
      {
        for (Iterator iter = message.getExtensions(); iter.hasNext();)
        {
          Extension extension = (Extension)iter.next();
          builder.addExtension(extension);
          if(extension instanceof XDelay)delayed=true;
        };
      }
      if(!delayed)
View Full Code Here

       
        Vector curMaps = new Vector();
        extensions = msg.getExtensions();
        // for all extensions
        while (extensions.hasNext()) {
            Extension ext = (Extension) extensions.next();
            // if map extension
            if (ext instanceof MapTag) {
                MapTag map = (MapTag) ext;
               // logMap(map);
                // adds map into temporary hashtable
                curMaps.add(map);
                JID jid = msg.getFrom();
                String completeID = new String(jid.getUser() + "@" +
                                               jid.getDomain() + "/" + map.getID());
                maps.put(completeID, map);
            }
        }
       
        // if that was not map message ends
        if (curMaps.isEmpty())
            return;
       
        // if it was map message, looks for included map images
        extensions = msg.getExtensions();
        while (extensions.hasNext()) {
            Extension ext = (Extension) extensions.next();
            // for all included files
            if (ext instanceof IQXOOB) {
              IQXOOB oob = (IQXOOB) ext;
                JID jid = msg.getFrom();
                try {
View Full Code Here

 
   
  public Extension signPresence(String status)
  {
    if(passpharse==null)askPassphrase();
    Extension signed =null;
    if(status!=null)
    {
      signed = new XSigned(sign(status));
    }
    return signed;
View Full Code Here

    xhtml = extension;
  }
 
  public Extension build()
  {
    Extension e = xhtml;
    xhtml=null;
    return e;
  }
View Full Code Here

TOP

Related Classes of nu.fw.jeti.jabber.elements.Extension

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.