Update of /cvsroot/sunxacml/sunxacml/com/sun/xacml
In directory sc8-pr-cvs1:/tmp/cvs-serv23329/sun/xacml
Modified Files:
AbstractPolicy.java
Log Message:
brought over a few fixes from the 1.1 branch
Index: AbstractPolicy.java
===================================================================
RCS file: /cvsroot/sunxacml/sunxacml/com/sun/xacml/AbstractPolicy.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** AbstractPolicy.java 29 Aug 2003 18:58:32 -0000 1.6
--- AbstractPolicy.java 7 Jan 2004 21:31:18 -0000 1.7
***************
*** 45,48 ****
--- 45,49 ----
import java.io.OutputStream;
+ import java.io.PrintStream;
import java.net.URI;
***************
*** 411,417 ****
}
! it = obligations.iterator();
! while (it.hasNext()) {
! ((Obligation)(it.next())).encode(output, indenter);
}
}
--- 412,429 ----
}
! if (obligations.size() != 0) {
! PrintStream out = new PrintStream(output);
! String indent = indenter.makeString();
!
! out.println(indent + "<Obligations>");
! indenter.in();
!
! it = obligations.iterator();
! while (it.hasNext()) {
! ((Obligation)(it.next())).encode(output, indenter);
! }
!
! out.println(indent + "</Obligations>");
! indenter.out();
}
}
|