You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fx-dev@ws.apache.org by da...@apache.org on 2007/05/23 19:32:39 UTC

svn commit: r540998 - /webservices/kandula/branches/Kandula_1/src/java/org/apache/kandula/coordinator/CoordinationContext.java

Author: dasarath
Date: Wed May 23 10:32:38 2007
New Revision: 540998

URL: http://svn.apache.org/viewvc?view=rev&rev=540998
Log:
WS-BA patch 2 for Kandula-1

* Bugfix in CoordinationContext.is(SOAPElement) - fixed Nullreference issue

for,

Hannes Erven <ha...@erven.at> & Georg Hicker <ge...@reflex.at>


Modified:
    webservices/kandula/branches/Kandula_1/src/java/org/apache/kandula/coordinator/CoordinationContext.java

Modified: webservices/kandula/branches/Kandula_1/src/java/org/apache/kandula/coordinator/CoordinationContext.java
URL: http://svn.apache.org/viewvc/webservices/kandula/branches/Kandula_1/src/java/org/apache/kandula/coordinator/CoordinationContext.java?view=diff&rev=540998&r1=540997&r2=540998
==============================================================================
--- webservices/kandula/branches/Kandula_1/src/java/org/apache/kandula/coordinator/CoordinationContext.java (original)
+++ webservices/kandula/branches/Kandula_1/src/java/org/apache/kandula/coordinator/CoordinationContext.java Wed May 23 10:32:38 2007
@@ -35,7 +35,12 @@
 import org.w3c.dom.Element;
 import org.w3c.dom.NodeList;
 
-public class CoordinationContext extends CoordinationContextType {
+public class CoordinationContext extends org.apache.kandula.wscoor.CoordinationContext {
+	/**
+	 * 
+	 */
+	private static final long serialVersionUID = 8381946008795050470L;
+
 	private static final Name COORDINATION_CONTEXT = new PrefixedQName(
 			"http://schemas.xmlsoap.org/ws/2004/10/wscoor",
 			"CoordinationContext", "wscoor");
@@ -61,7 +66,6 @@
 			"ReferenceProperties", "wsa");
 
 	public CoordinationContext(CoordinationContextType c) {
-		this.set_any(c.get_any());
 		this.setCoordinationType(c.getCoordinationType());
 		this.setExpires(c.getExpires());
 		this.setIdentifier(c.getIdentifier());
@@ -75,6 +79,16 @@
 		setCoordinationType(new URI(coordinationType));
 	}
 
+	public CoordinationContext(
+			final CoordinationContextTypeIdentifier id, 
+			final URI coordinationType,
+			final EndpointReference epr
+	) {
+		setIdentifier(id);
+		setRegistrationService(epr);
+		setCoordinationType(coordinationType);
+	}
+
 	public CoordinationContext(SOAPElement el) {
 		try {
 			NodeList list = el.getElementsByTagNameNS(IDENTIFIER.getURI(),
@@ -100,7 +114,7 @@
 	}
 
 	public static boolean is(SOAPElement e) {
-		return e.getElementName().equals(COORDINATION_CONTEXT);
+		return COORDINATION_CONTEXT.equals( e.getElementName() );
 	}
 
 	public void toSOAPHeaderElement(SOAPHeader header) {
@@ -137,4 +151,4 @@
 		}
 	}
 
-}
\ No newline at end of file
+}



---------------------------------------------------------------------
To unsubscribe, e-mail: kandula-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: kandula-dev-help@ws.apache.org