199200201202203204205206207208209
PRE pre = new PRE(); Iterator rs = data.getACL().getRoles().elements(); while ( rs.hasNext() ) { String roleName = ((Role)rs.next()).getName(); pre.addElement(roleName + "\n"); } body .addElement( new BR() ) .addElement( new B("ROLES") ) .addElement( new BR() )
212213214215216217218219220221222
pre = new PRE(); Iterator ps = data.getACL().getPermissions().elements(); while ( ps.hasNext() ) { String permissionName = ((Permission)ps.next()).getName(); pre.addElement(permissionName + "\n"); } body .addElement( new BR() ) .addElement( new B("PERMISSIONS") ) .addElement( new BR() )
124125126127128129130131132133134
{ String key = (String) it.next(); String[] values = data.getParameters().getStrings(key); if (values.length == 1) { pre.addElement(key + " = " + values[0] + "\n"); } else { pre.addElement(key + " = "); for (int i = 0; i < values.length; i++)
128129130131132133134135136137138
{ pre.addElement(key + " = " + values[0] + "\n"); } else { pre.addElement(key + " = "); for (int i = 0; i < values.length; i++) { pre.addElement(values[i] + " "); } pre.addElement("\n");
131132133134135136137138139140141
else { pre.addElement(key + " = "); for (int i = 0; i < values.length; i++) { pre.addElement(values[i] + " "); } pre.addElement("\n"); } } body
133134135136137138139140141142143
pre.addElement(key + " = "); for (int i = 0; i < values.length; i++) { pre.addElement(values[i] + " "); } pre.addElement("\n"); } } body .addElement(new B("Query/PathInfo Parameters")) .addElement(new BR())
173174175176177178179180181182183
for (Iterator rs = data.getACL().getRoles().iterator(); rs.hasNext(); ) { String roleName = ((Role) rs.next()).getName(); pre.addElement(roleName + "\n"); } body .addElement(new BR()) .addElement(new B("ROLES")) .addElement(new BR())
187188189190191192193194195196197
for (Iterator ps = data.getACL().getPermissions().iterator(); ps.hasNext(); ) { String permissionName = ((Permission) ps.next()).getName(); pre.addElement(permissionName + "\n"); } body .addElement(new BR()) .addElement(new B("PERMISSIONS")) .addElement(new BR())
127128129130131132133134135136137