<%-- - $Revision$ - $Date$ --%> <%@ page import="org.jivesoftware.openfire.session.Session, org.jivesoftware.util.LocaleUtils, org.jivesoftware.util.StringUtils, org.xmpp.packet.JID, org.xmpp.packet.Presence"%> <%@ page import="java.net.URLEncoder"%> <%-- - This page is meant to be included in other pages. It assumes 2 variables: - * 'sess', a org.jivesoftware.xmpp.Session object - * 'count', an int representing the row number we're on. - * 'current', a boolean which indicates the current row the user is looking (pass in - false if there is no current row. - * 'linkURL', a String representing the JSP page to link to --%> <% if (current) { %> <% } else { %> "> <% } %> <%= count %> <% String name = sess.getAddress().getNode(); %> " title="" ><%= ((!sessionManager.isAnonymousRoute(sess.getUsername())) ? JID.unescapeNode(name): ""+LocaleUtils.getLocalizedString("session.details.anonymous")+"") %> <%= StringUtils.escapeForXML(sess.getAddress().getResource()) %> <% int _status = sess.getStatus(); if (_status == Session.STATUS_CLOSED) { %> <% } else if (_status == Session.STATUS_CONNECTED) { %> <% } else if (_status == org.jivesoftware.openfire.session.Session.STATUS_AUTHENTICATED) { %> <% } else { %> <% } %> <% if (sess.isSecure()) { %> "> <% } else { %> <% } %> <% Presence.Show _show = sess.getPresence().getShow(); String _stat = sess.getPresence().getStatus(); if (!sess.getPresence().isAvailable()) { %> " > <% } else if (_show == Presence.Show.away) { %> " > <% if (_stat != null) { %> <%= _stat %> <% } else { %> <% } %> <% } else if (_show == Presence.Show.chat) { %> " > <% } else if (_show == Presence.Show.dnd) { %> " > <% if (_stat != null) { %> <%= sess.getPresence().getStatus() %> <% } else { %> <% } %> <% } else if (_show == null) { %> " > <% } else if (_show == Presence.Show.xa) { %> " > <% if (_stat != null) { %> <%= sess.getPresence().getStatus() %> <% } else { %> <% } %> <% } else { %> <% } %> <%= sess.getPresence().getPriority() %> <%= sess.getHostAddress() %> &close=true" title="" onclick="return confirm('');" >