You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by na...@apache.org on 2008/06/07 04:47:15 UTC

svn commit: r664247 - /webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/SymbolTableParsingUtils.java

Author: nadiramra
Date: Fri Jun  6 19:47:14 2008
New Revision: 664247

URL: http://svn.apache.org/viewvc?rev=664247&view=rev
Log:
reformat....

Modified:
    webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/SymbolTableParsingUtils.java

Modified: webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/SymbolTableParsingUtils.java
URL: http://svn.apache.org/viewvc/webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/SymbolTableParsingUtils.java?rev=664247&r1=664246&r2=664247&view=diff
==============================================================================
--- webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/SymbolTableParsingUtils.java (original)
+++ webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/SymbolTableParsingUtils.java Fri Jun  6 19:47:14 2008
@@ -31,84 +31,93 @@
 /**
  * @author hemapani
  */
-public class SymbolTableParsingUtils {
-	public static String getTargetEndPointURI(Iterator ports){
-	  //we are checking only the first port. 
-	  //if the targetEndPointURI not specifed we continue having it null
-	  //The WrapperInfo will set a default value for the targetEndPointURI
-			
-	  if (ports.hasNext()) {
-		  Port port = (Port) ports.next();
-		  List adresslist = port.getExtensibilityElements();
-		  if (adresslist != null
-			  && adresslist.size() != 0
-			  && (adresslist.get(0)
-				  instanceof javax.wsdl.extensions.soap.SOAPAddress))
-			  return 
-				  ((javax.wsdl.extensions.soap.SOAPAddress) adresslist.get(0))
-					  .getLocationURI();
-	  }
-	  return null;
-	}
-	
-	public static String getTransportType(Binding binding){
-		List soapbinding = binding.getExtensibilityElements();
-		if (soapbinding != null
-			&& soapbinding.size() > 0
-			&& (soapbinding.get(0) instanceof javax.wsdl.extensions.soap.SOAPBinding))
-			return 	((javax.wsdl.extensions.soap.SOAPBinding) soapbinding.get(0))
-					.getTransportURI();
-		return null;			
-	}
-	
-	public static String getSoapAction(BindingOperation bindingOperation){
-		List extenstions = bindingOperation.getExtensibilityElements();
-		for(int i=0;i<extenstions.size();i++){
-			if(extenstions.get(i) instanceof SOAPOperation)
-				return ((SOAPOperation)extenstions.get(i)).getSoapActionURI();
-		}
-		return null;
-	}
-	public static List getInputInfo(BindingInput input,MethodInfo methodinfo){
-	  if (input == null)
-			return null;
-	  List soapbodies = input.getExtensibilityElements();
-
-	  if (soapbodies != null) {
-		  for (int j = 0; j < soapbodies.size(); j++) {
-			  if (soapbodies.get(j) instanceof javax.wsdl.extensions.soap.SOAPBody) 
-              {
-					javax.wsdl.extensions.soap.SOAPBody body =
-						 ((javax.wsdl.extensions.soap.SOAPBody) soapbodies
-						  .get(j));
-					methodinfo.setInputEncoding(body.getEncodingStyles());
-					methodinfo.setInputUse(body.getUse());
+public class SymbolTableParsingUtils
+{
+    public static String getTargetEndPointURI(Iterator ports)
+    {
+        // we are checking only the first port.
+        // if the targetEndPointURI not specifed we continue having it null
+        // The WrapperInfo will set a default value for the targetEndPointURI
+
+        if (ports.hasNext())
+        {
+            Port port = (Port) ports.next();
+            List adresslist = port.getExtensibilityElements();
+            if (adresslist != null
+                    && adresslist.size() != 0
+                    && (adresslist.get(0) instanceof javax.wsdl.extensions.soap.SOAPAddress))
+                return ((javax.wsdl.extensions.soap.SOAPAddress) adresslist.get(0))
+                        .getLocationURI();
+        }
+        return null;
+    }
+
+    public static String getTransportType(Binding binding)
+    {
+        List soapbinding = binding.getExtensibilityElements();
+        if (soapbinding != null
+                && soapbinding.size() > 0
+                && (soapbinding.get(0) instanceof javax.wsdl.extensions.soap.SOAPBinding))
+            return ((javax.wsdl.extensions.soap.SOAPBinding) soapbinding.get(0))
+                    .getTransportURI();
+        return null;
+    }
+
+    public static String getSoapAction(BindingOperation bindingOperation)
+    {
+        List extenstions = bindingOperation.getExtensibilityElements();
+        for (int i = 0; i < extenstions.size(); i++)
+        {
+            if (extenstions.get(i) instanceof SOAPOperation)
+                return ((SOAPOperation) extenstions.get(i)).getSoapActionURI();
+        }
+        return null;
+    }
+
+    public static List getInputInfo(BindingInput input, MethodInfo methodinfo)
+    {
+        if (input == null)
+            return null;
+        List soapbodies = input.getExtensibilityElements();
+
+        if (soapbodies != null)
+        {
+            for (int j = 0; j < soapbodies.size(); j++)
+            {
+                if (soapbodies.get(j) instanceof javax.wsdl.extensions.soap.SOAPBody)
+                {
+                    javax.wsdl.extensions.soap.SOAPBody body = ((javax.wsdl.extensions.soap.SOAPBody) soapbodies
+                            .get(j));
+                    methodinfo.setInputEncoding(body.getEncodingStyles());
+                    methodinfo.setInputUse(body.getUse());
                     methodinfo.setInputNamespaceURI(body.getNamespaceURI());
-			  }
-		  }
-	  }
-	  return null;
-	}
-	public static List getOutputInfo(BindingOutput input,MethodInfo methodinfo){
-	  if (input == null)
-			return null;
-	  List soapbodies = input.getExtensibilityElements();
-
-	  if (soapbodies != null) {
-		  for (int j = 0; j < soapbodies.size(); j++) 
-          {
-			  if (soapbodies.get(j) instanceof javax.wsdl.extensions.soap.SOAPBody) 
-              {
-					javax.wsdl.extensions.soap.SOAPBody body =
-						 ((javax.wsdl.extensions.soap.SOAPBody) soapbodies
-						  .get(j));
-					methodinfo.setInputEncoding(body.getEncodingStyles());
-					methodinfo.setInputUse(body.getUse());
+                }
+            }
+        }
+        return null;
+    }
+
+    public static List getOutputInfo(BindingOutput input, MethodInfo methodinfo)
+    {
+        if (input == null)
+            return null;
+        List soapbodies = input.getExtensibilityElements();
+
+        if (soapbodies != null)
+        {
+            for (int j = 0; j < soapbodies.size(); j++)
+            {
+                if (soapbodies.get(j) instanceof javax.wsdl.extensions.soap.SOAPBody)
+                {
+                    javax.wsdl.extensions.soap.SOAPBody body = ((javax.wsdl.extensions.soap.SOAPBody) soapbodies
+                            .get(j));
+                    methodinfo.setInputEncoding(body.getEncodingStyles());
+                    methodinfo.setInputUse(body.getUse());
                     methodinfo.setOutputNamespaceURI(body.getNamespaceURI());
-			  }
-		  }
-	  }
-	  return null;
-	}
+                }
+            }
+        }
+        return null;
+    }
 
 }