Package org.jabber.etherx.streams

Examples of org.jabber.etherx.streams.Features


        }
        xmlWriter.writeAttribute("to", to);
        xmlWriter.writeAttribute("from", from);

        // now lets write the features
        Features features = new Features();

        // TODO support TLS
        // features.getAny().add(new Starttls());

        //Mechanisms mechanisms = new Mechanisms();

        // TODO support SASL
        // mechanisms.getMechanism().add("DIGEST-MD5");
        // mechanisms.getMechanism().add("PLAIN");
        //features.getAny().add(mechanisms);
        features.getAny().add(new ietf.params.xml.ns.xmpp_bind.ObjectFactory().createBind());
        features.getAny().add(new ietf.params.xml.ns.xmpp_session.ObjectFactory().createSession(""));
        marshall(features);

        LOG.debug("Initial stream element sent!");
    }
View Full Code Here


        }
        xmlWriter.writeAttribute("to", to);
        xmlWriter.writeAttribute("from", from);

        // now lets write the features
        Features features = new Features();

        // TODO support TLS
        // features.getAny().add(new Starttls());

        //Mechanisms mechanisms = new Mechanisms();

        // TODO support SASL
        // mechanisms.getMechanism().add("DIGEST-MD5");
        // mechanisms.getMechanism().add("PLAIN");
        //features.getAny().add(mechanisms);
        features.getAny().add(new ietf.params.xml.ns.xmpp_bind.ObjectFactory().createBind());
        features.getAny().add(new ietf.params.xml.ns.xmpp_session.ObjectFactory().createSession(""));
        marshall(features);

        LOG.debug("Initial stream element sent!");
    }
View Full Code Here

        xmlWriter.writeAttribute("to", to);
        xmlWriter.writeAttribute("from", from);


        // now lets write the features
        Features features = new Features();

        // TODO support TLS
        //features.getAny().add(new Starttls());

        Mechanisms mechanisms = new Mechanisms();

        // TODO support SASL
        //mechanisms.getMechanism().add("DIGEST-MD5");
        //mechanisms.getMechanism().add("PLAIN");
        features.getAny().add(mechanisms);
        marshall(features);

        log.debug("Initial stream element sent!");
    }
View Full Code Here

        }
        xmlWriter.writeAttribute("to", to);
        xmlWriter.writeAttribute("from", from);

        // now lets write the features
        Features features = new Features();

        // TODO support TLS
        // features.getAny().add(new Starttls());

        //Mechanisms mechanisms = new Mechanisms();

        // TODO support SASL
        // mechanisms.getMechanism().add("DIGEST-MD5");
        // mechanisms.getMechanism().add("PLAIN");
        //features.getAny().add(mechanisms);
        features.getAny().add(new ietf.params.xml.ns.xmpp_bind.ObjectFactory().createBind());
        features.getAny().add(new ietf.params.xml.ns.xmpp_session.ObjectFactory().createSession(""));
        marshall(features);

        LOG.debug("Initial stream element sent!");
    }
View Full Code Here

        }
        xmlWriter.writeAttribute("to", to);
        xmlWriter.writeAttribute("from", from);

        // now lets write the features
        Features features = new Features();

        // TODO support TLS
        // features.getAny().add(new Starttls());

        Mechanisms mechanisms = new Mechanisms();

        // TODO support SASL
        // mechanisms.getMechanism().add("DIGEST-MD5");
        // mechanisms.getMechanism().add("PLAIN");
        features.getAny().add(mechanisms);
        marshall(features);

        LOG.debug("Initial stream element sent!");
    }
View Full Code Here

TOP

Related Classes of org.jabber.etherx.streams.Features

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.