Examples of addInfoRequestListener()


Examples of org.apache.vysper.xmpp.modules.servicediscovery.collection.ServiceCollector.addInfoRequestListener()

    public void testExtendedInfo() throws EntityFormatException {

        // test if the data form is correctly added to the disco info response
       
        ServiceCollector serviceCollector = new ServiceCollector();
        serviceCollector.addInfoRequestListener(new InfoRequestListener() {
            public List<InfoElement> getInfosFor(InfoRequest request) throws ServiceDiscoveryRequestException {

                DataForm form = new DataForm();
                form.setTitle("formtitle");
                form.setType(DataForm.Type.form);
View Full Code Here

Examples of org.apache.vysper.xmpp.modules.servicediscovery.collection.ServiceCollector.addInfoRequestListener()

    public void testExtendedInfo() throws EntityFormatException {

        // test if the data form is correctly added to the disco info response

        ServiceCollector serviceCollector = new ServiceCollector();
        serviceCollector.addInfoRequestListener(new InfoRequestListener() {
            public List<InfoElement> getInfosFor(InfoRequest request) throws ServiceDiscoveryRequestException {

                DataForm form = new DataForm();
                form.setTitle("formtitle");
                form.setType(DataForm.Type.form);
View Full Code Here

Examples of org.apache.vysper.xmpp.modules.servicediscovery.collection.ServiceDiscoveryRequestListenerRegistry.addInfoRequestListener()

        List<InfoRequestListener> infoRequestListeners = new ArrayList<InfoRequestListener>();
        addInfoRequestListeners(infoRequestListeners);
        for (InfoRequestListener infoRequestListener : infoRequestListeners) {
            if (infoRequestListener == null) continue;
            requestListenerRegistry.addInfoRequestListener(infoRequestListener);
        }

        List<ServerInfoRequestListener> serverInfoRequestListeners = new ArrayList<ServerInfoRequestListener>();
        addServerInfoRequestListeners(serverInfoRequestListeners);
        for (ServerInfoRequestListener serverInfoRequestListener : serverInfoRequestListeners) {
View Full Code Here

Examples of org.apache.vysper.xmpp.modules.servicediscovery.collection.ServiceDiscoveryRequestListenerRegistry.addInfoRequestListener()

        List<InfoRequestListener> infoRequestListeners = new ArrayList<InfoRequestListener>();
        addInfoRequestListeners(infoRequestListeners);
        for (InfoRequestListener infoRequestListener : infoRequestListeners) {
            if (infoRequestListener == null)
                continue;
            requestListenerRegistry.addInfoRequestListener(infoRequestListener);
        }

        List<ServerInfoRequestListener> serverInfoRequestListeners = new ArrayList<ServerInfoRequestListener>();
        addServerInfoRequestListeners(serverInfoRequestListeners);
        for (ServerInfoRequestListener serverInfoRequestListener : serverInfoRequestListeners) {
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.