Package org.xmpp.forms

Examples of org.xmpp.forms.FormField


    }
   
    public void setFrom(String from) {
        DataForm challengeForm = getChallengeForm();
       
        FormField field = challengeForm.getField("from");
        if( field == null ) {
            field = challengeForm.addField();
            field.setVariable("from");
            field.setType(FormField.Type.hidden);
           
            field.clearValues();
        }
        field.addValue(from);
    }
View Full Code Here


    }
   
    public void setChallengeId(String challengeId) {
        DataForm challengeForm = getChallengeForm();
       
        FormField field = challengeForm.getField("cid");
        if( field == null ) {
            field = challengeForm.addField();
            field.setVariable("cid");
            field.setType(FormField.Type.hidden);
           
            field.clearValues();
        }
        field.addValue(challengeId);
    }
View Full Code Here

    }
   
    public void setPacketId(String packetId) {
        DataForm challengeForm = getChallengeForm();
       
        FormField field = challengeForm.getField("sid");
        if( field == null ) {
            field = challengeForm.addField();
            field.setVariable("sid");
            field.setType(FormField.Type.hidden);
           
            field.clearValues();
        }
        field.addValue(packetId);
    }
View Full Code Here

TOP

Related Classes of org.xmpp.forms.FormField

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.