Author: darran.lofthouse(a)jboss.com
Date: 2008-12-01 12:39:26 -0500 (Mon, 01 Dec 2008)
New Revision: 8820
Modified:
common/trunk/src/main/java/org/jboss/wsf/common/DOMUtils.java
Log:
[JBWS-2304] DOMUtils ThreadLocals not cleared for client calls.
Modified: common/trunk/src/main/java/org/jboss/wsf/common/DOMUtils.java
===================================================================
--- common/trunk/src/main/java/org/jboss/wsf/common/DOMUtils.java 2008-11-28 14:32:57 UTC
(rev 8819)
+++ common/trunk/src/main/java/org/jboss/wsf/common/DOMUtils.java 2008-12-01 17:39:26 UTC
(rev 8820)
@@ -660,6 +660,17 @@
return (parent instanceof Element ? (Element)parent : null);
}
+ /** Peek at the owner document without creating a new one if not set. */
+ public static Document peekOwnerDocument()
+ {
+ return documentThreadLocal.get();
+ }
+
+ public static void setOwnerDocument(Document doc)
+ {
+ documentThreadLocal.set(doc);
+ }
+
/** Get the owner document that is associated with the current thread */
public static Document getOwnerDocument()
{
Show replies by date