|
85 | 85 |
|
86 | 86 | // Close the connection to the XMPP server
|
87 | 87 | if ("close".equals(action)) {
|
88 |
| - conn.close(); |
| 88 | + conn.disconnect(); |
89 | 89 | session.invalidate();
|
90 | 90 | response.sendRedirect("login.jsp");
|
91 | 91 | return;
|
|
118 | 118 | </tr>
|
119 | 119 | <tr>
|
120 | 120 | <td> <TABLE cellSpacing=0 borderColorDark=#E0E0E0 cellPadding=0 width=100% align=center borderColorLight=#000000 border=1>
|
121 |
| - <% for (Iterator groups = roster.getGroups(); groups.hasNext();) { |
122 |
| - RosterGroup group = (RosterGroup)groups.next();%> |
| 121 | + <% for (Iterator<RosterGroup> groups = roster.getGroups().iterator(); groups.hasNext();) { |
| 122 | + RosterGroup group = groups.next();%> |
123 | 123 | <tr>
|
124 | 124 | <td bgcolor="#AAAAAA" colspan="6" class=text id=white height=16>Group:
|
125 | 125 | <%= group.getName()%></td>
|
|
130 | 130 | <TD class=text id=white height=16>Subscription</TD>
|
131 | 131 | <TD colspan="3" class=text id=white height=16><a href="addContact.jsp?group1=<%=group.getName()%>"><img src="images/businessman_add.png" alt="Add contact to group" border="0"></a></TD>
|
132 | 132 | </TR>
|
133 |
| - <% for (Iterator it = group.getEntries(); it.hasNext();) { |
134 |
| - RosterEntry entry = (RosterEntry)it.next();%> |
| 133 | + <% for (Iterator<RosterEntry> it = group.getEntries().iterator(); it.hasNext();) { |
| 134 | + RosterEntry entry = it.next();%> |
135 | 135 | <TR vAlign=center align=middle bgColor=#ffffff>
|
136 | 136 | <TD class=text height=16><%= entry.getUser()%></TD>
|
137 | 137 | <TD class=text height=16><%= entry.getName()%></TD>
|
|
152 | 152 | <TD class=text id=white height=16>Subscription</TD>
|
153 | 153 | <TD colspan="3" class=text id=white height=16><a href="addContact.jsp"><img src="images/businessman_add.png" alt="Add contact" border="0"></a></TD>
|
154 | 154 | </TR>
|
155 |
| - <% for (Iterator it = roster.getUnfiledEntries(); it.hasNext();) { |
156 |
| - RosterEntry entry = (RosterEntry)it.next();%> |
| 155 | + <% for (Iterator<RosterEntry> it = roster.getUnfiledEntries().iterator(); it.hasNext();) { |
| 156 | + RosterEntry entry = it.next();%> |
157 | 157 | <tr vAlign=center align=middle bgColor=#ffffff>
|
158 | 158 | <td class=text height=16><%= entry.getUser()%></td>
|
159 | 159 | <td class=text height=16><%= entry.getName()%></td>
|
|
183 | 183 | <TD class=text id=white height=16>Type</TD>
|
184 | 184 | <TD class=text id=white height=16> </TD>
|
185 | 185 | </TR>
|
186 |
| - <% for (Iterator entries = roster.getEntries(); entries.hasNext();) { |
187 |
| - RosterEntry entry = (RosterEntry)entries.next(); |
| 186 | + <% for (Iterator<RosterEntry> entries = roster.getEntries().iterator(); entries.hasNext();) { |
| 187 | + RosterEntry entry = entries.next(); |
188 | 188 | Iterator presences = roster.getPresences(entry.getUser());
|
189 | 189 | if (presences != null) {
|
190 | 190 | while (presences.hasNext()) {
|
|
0 commit comments