Examples of Bind


Examples of org.apache.struts2.dojo.components.Bind

    public String getBeanName() {
        return "bind";
    }

    protected Component getBean(ValueStack stack, HttpServletRequest req, HttpServletResponse res) {
        return new Bind(stack, req, res);
    }
View Full Code Here

Examples of org.apache.struts2.dojo.components.Bind

    protected String targets;
    protected String sources;
    protected String events;
   
    public Component getBean(ValueStack stack, HttpServletRequest req, HttpServletResponse res) {
        return new Bind(stack, req, res);
    }
View Full Code Here

Examples of org.apache.struts2.dojo.components.Bind

    }

    protected void populateParams() {
        super.populateParams();

        Bind bind = (Bind) component;
        bind.setTargets(targets);
        bind.setSources(sources);
        bind.setEvents(events);
    }
View Full Code Here

Examples of org.apache.struts2.dojo.components.Bind

    public BindModel(ValueStack stack, HttpServletRequest req, HttpServletResponse res) {
        super(stack, req, res);
    }

    protected Component getBean() {
        return new Bind(stack, req, res);
    }
View Full Code Here

Examples of org.apache.struts2.dojo.components.Bind

    protected String targets;
    protected String sources;
    protected String events;
   
    public Component getBean(ValueStack stack, HttpServletRequest req, HttpServletResponse res) {
        return new Bind(stack, req, res);
    }
View Full Code Here

Examples of org.apache.struts2.dojo.components.Bind

    }

    protected void populateParams() {
        super.populateParams();

        Bind bind = (Bind) component;
        bind.setTargets(targets);
        bind.setSources(sources);
        bind.setEvents(events);
    }
View Full Code Here

Examples of org.apache.struts2.dojo.components.Bind

    public String getBeanName() {
        return "bind";
    }

    protected Component getBean(ValueStack stack, HttpServletRequest req, HttpServletResponse res) {
        return new Bind(stack, req, res);
    }
View Full Code Here

Examples of org.jivesoftware.smack.packet.Bind

        if (!resourceBinded) {
            // Server never offered resource binding
            throw new XMPPException("Resource binding not offered by server");
        }

        Bind bindResource = new Bind();
        bindResource.setResource(resource);

        PacketCollector collector = connection
                .createPacketCollector(new PacketIDFilter(bindResource.getPacketID()));
        // Send the packet
        connection.sendPacket(bindResource);
        // Wait up to a certain number of seconds for a response from the server.
        Bind response = (Bind) collector.nextResult(SmackConfiguration.getPacketReplyTimeout());
        collector.cancel();
        if (response == null) {
            throw new XMPPException("No response from the server.");
        }
        // If the server replied with an error, throw an exception.
        else if (response.getType() == IQ.Type.ERROR) {
            throw new XMPPException(response.getError());
        }
        String userJID = response.getJid();

        if (sessionSupported) {
            Session session = new Session();
            collector = connection.createPacketCollector(new PacketIDFilter(session.getPacketID()));
            // Send the packet
View Full Code Here

Examples of org.jivesoftware.smack.packet.Bind

        if (!resourceBinded) {
            // Server never offered resource binding
            throw new XMPPException("Resource binding not offered by server");
        }

        Bind bindResource = new Bind();
        bindResource.setResource(resource);

        PacketCollector collector = connection
                .createPacketCollector(new PacketIDFilter(bindResource.getPacketID()));
        // Send the packet
        connection.sendPacket(bindResource);
        // Wait up to a certain number of seconds for a response from the server.
        Bind response = (Bind) collector.nextResult(SmackConfiguration.getPacketReplyTimeout());
        collector.cancel();
        if (response == null) {
            throw new XMPPException("No response from the server.");
        }
        // If the server replied with an error, throw an exception.
        else if (response.getType() == IQ.Type.ERROR) {
            throw new XMPPException(response.getError());
        }
        String userJID = response.getJid();

        if (sessionSupported) {
            Session session = new Session();
            collector = connection.createPacketCollector(new PacketIDFilter(session.getPacketID()));
            // Send the packet
View Full Code Here

Examples of org.jivesoftware.smack.packet.Bind

        if (!resourceBinded) {
            // Server never offered resource binding
            throw new XMPPException("Resource binding not offered by server");
        }

        Bind bindResource = new Bind();
        bindResource.setResource(resource);

        PacketCollector collector = connection
                .createPacketCollector(new PacketIDFilter(bindResource.getPacketID()));
        // Send the packet
        connection.sendPacket(bindResource);
        // Wait up to a certain number of seconds for a response from the server.
        Bind response = (Bind) collector.nextResult(SmackConfiguration.getPacketReplyTimeout());
        collector.cancel();
        if (response == null) {
            throw new XMPPException("No response from the server.");
        }
        // If the server replied with an error, throw an exception.
        else if (response.getType() == IQ.Type.ERROR) {
            throw new XMPPException(response.getError());
        }
        String userJID = response.getJid();

        if (sessionSupported) {
            Session session = new Session();
            collector = connection.createPacketCollector(new PacketIDFilter(session.getPacketID()));
            // Send the packet
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.