powered by Jive Software

MUC with group name in Capital (Upper-Case) letters

I am using this peace of code to create a group in openfire. Problem is if I want to create Group id in capital letters ( group_name in the code) then group id is created in small letters on open fire.Any Idea how we can create groups in capital letters ?

muc = new MultiUserChat(mConnection, group_name+"$"+constant+"@conference.xxx.com");

try {

muc.create(mConnection.getUser().substring(0, mConnection.getUser().indexOf(’/’)));

Form form = muc.getConfigurationForm();

// Create a new form to submit based on the original form

Form submitForm = form.createAnswerForm();

// Add default answers to the form to submit

for (Iterator fields = form.getFields(); fields.hasNext():wink: {

FormField field = (FormField) fields.next();

if (!FormField.TYPE_HIDDEN.equals(field.getType()) && field.getVariable() != null) {

// Sets the default value as the answer

submitForm.setDefaultAnswer(field.getVariable());

}

}

// Sets the new owner of the room

List owners = new ArrayList();

owners.add(mConnection.getUser());

submitForm.setAnswer(“muc#roomconfig_roomowners”, owners);

// Send the completed form (with default values) to the server to configure the room

muc.sendConfigurationForm(submitForm);