Examples of InfoRequest


Examples of org.apache.vysper.xmpp.modules.servicediscovery.management.InfoRequest

        // collect all the info response elements
        List<InfoElement> elements = null;
        try {
            if (isServerInfoRequest) {
                elements = serviceCollector.processServerInfoRequest(new InfoRequest(stanza.getFrom(), to, node, stanza.getID()));
            } else if (isComponentInfoRequest) {
                elements = serviceCollector.processComponentInfoRequest(new InfoRequest(stanza.getFrom(), to, node, stanza.getID()));
            } else {
                elements = serviceCollector.processInfoRequest(new InfoRequest(stanza.getFrom(), to, node, stanza.getID()));
            }
        } catch (ServiceDiscoveryRequestException e) {
            // the request yields an error
            StanzaErrorCondition stanzaErrorCondition = e.getErrorCondition();
            if (stanzaErrorCondition == null) stanzaErrorCondition = StanzaErrorCondition.INTERNAL_SERVER_ERROR;
View Full Code Here

Examples of org.apache.vysper.xmpp.modules.servicediscovery.management.InfoRequest

        String node = queryElement != null ? queryElement.getAttributeValue("node") : null;

        // collect all the item response elements
        List<Item> items = null;
        try {
            items = serviceCollector.processItemRequest(new InfoRequest(stanza.getFrom(), stanza.getTo(), node, stanza.getID()));
        } catch (ServiceDiscoveryRequestException e) {
            // the request yields an error
            StanzaErrorCondition stanzaErrorCondition = e.getErrorCondition();
            if (stanzaErrorCondition == null) stanzaErrorCondition = StanzaErrorCondition.INTERNAL_SERVER_ERROR;
            return ServerErrorResponses.getInstance().getStanzaError(stanzaErrorCondition, stanza,
View Full Code Here

Examples of org.apache.vysper.xmpp.modules.servicediscovery.management.InfoRequest

        // collect all the info response elements
        List<InfoElement> elements = null;
        try {
            if (isServerInfoRequest) {
                elements = serviceCollector.processServerInfoRequest(new InfoRequest(stanza.getFrom(), to, node, stanza
                        .getID()));
            } else if (isComponentInfoRequest) {
                elements = serviceCollector.processComponentInfoRequest(new InfoRequest(stanza.getFrom(), to, node,
                        stanza.getID()));
            } else {
                elements = serviceCollector.processInfoRequest(new InfoRequest(stanza.getFrom(), to, node, stanza
                        .getID()));
            }
        } catch (ServiceDiscoveryRequestException e) {
            // the request yields an error
            StanzaErrorCondition stanzaErrorCondition = e.getErrorCondition();
View Full Code Here

Examples of org.apache.vysper.xmpp.modules.servicediscovery.management.InfoRequest

        String node = queryElement != null ? queryElement.getAttributeValue("node") : null;

        // collect all the item response elements
        List<Item> items = null;
        try {
            items = serviceCollector.processItemRequest(new InfoRequest(stanza.getFrom(), stanza.getTo(), node, stanza
                    .getID()));
        } catch (ServiceDiscoveryRequestException e) {
            // the request yields an error
            StanzaErrorCondition stanzaErrorCondition = e.getErrorCondition();
            if (stanzaErrorCondition == null)
View Full Code Here

Examples of org.apache.vysper.xmpp.modules.servicediscovery.management.InfoRequest

        // collect all the item response elements
        List<Item> items;
        try {
            Entity from = stanza.getFrom();
            if (from == null) from = sessionContext.getInitiatingEntity();
            items = serviceCollector.processItemRequest(new InfoRequest(from, stanza.getTo(), node, stanza
                    .getID()));
        } catch (ServiceDiscoveryRequestException e) {
            // the request yields an error
            StanzaErrorCondition stanzaErrorCondition = e.getErrorCondition();
            if (stanzaErrorCondition == null)
View Full Code Here

Examples of org.apache.vysper.xmpp.modules.servicediscovery.management.InfoRequest

        List<InfoElement> elements = null;
        try {
            Entity from = stanza.getFrom();
            if (from == null) from = sessionContext.getInitiatingEntity();
            if (isServerInfoRequest) {
                elements = serviceCollector.processServerInfoRequest(new InfoRequest(from, to, node, stanza
                        .getID()));
            } else if (isComponentInfoRequest) {
                elements = serviceCollector.processComponentInfoRequest(new InfoRequest(from, to, node,
                        stanza.getID()));
            } else {
                elements = serviceCollector.processInfoRequest(new InfoRequest(from, to, node, stanza
                        .getID()));
            }
        } catch (ServiceDiscoveryRequestException e) {
            // the request yields an error
            StanzaErrorCondition stanzaErrorCondition = e.getErrorCondition();
View Full Code Here

Examples of org.ggp.base.player.request.grammar.InfoRequest

        if (list.size() != 1)
        {
            throw new IllegalArgumentException("Expected no arguments!");
        }

        return new InfoRequest(gamer);
    }
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.