Package nu.fw.jeti.jabber.elements

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


  private List items;
 
  public XDataHandler()
  {
    builder = new XDataBuilder();
    fieldBuilder = new XDataFieldBuilder();
  }
View Full Code Here


        progressBar.setMaximum((int)(file.length()/1024));

        id = "file"+backend.getIdentifier();
        XDataBuilder xdb = new XDataBuilder();
        xdb.type ="form";
        XDataFieldBuilder xdfb = new XDataFieldBuilder();
        xdfb.var="stream-method";
        xdfb.type="list-single";
        if (Preferences.getBoolean("filetransfer","bytestreams.enable",true)) {
            xdfb.addOption("http://jabber.org/protocol/bytestreams");
        }
        if (Preferences.getBoolean("filetransfer", "ibb.enable", true)) {
            xdfb.addOption("http://jabber.org/protocol/ibb");
        }
        xdb.addField(xdfb.build());
        XData xdata=null;
        try {
            xdata = xdb.build();
        } catch (InstantiationException e1) {
            e1.printStackTrace();
View Full Code Here

TOP

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

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.