axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sa...@apache.org
Subject svn commit: r406879 - /webservices/axis2/trunk/c/modules/util/url.c
Date Tue, 16 May 2006 09:18:00 GMT
Author: sahan
Date: Tue May 16 02:17:30 2006
New Revision: 406879

URL: http://svn.apache.org/viewcvs?rev=406879&view=rev
Log:
Making URL's to work with files

Modified:
    webservices/axis2/trunk/c/modules/util/url.c

Modified: webservices/axis2/trunk/c/modules/util/url.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/util/url.c?rev=406879&r1=406878&r2=406879&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/util/url.c (original)
+++ webservices/axis2/trunk/c/modules/util/url.c Tue May 16 02:17:30 2006
@@ -135,6 +135,7 @@
 	/**
 	 * Only accepted format is : 
 	 * protocol://server:port/path
+     * Added file:///path
 	 * port is optional and the default port is assumed
 	 * if path is not present / (root) is assumed
 	 */
@@ -180,6 +181,15 @@
 		AXIS2_FREE((*env)->allocator, tmp_url_str);
 		return NULL;
 	}
+    /* if the url is file:// thing we need the protocol and
+     * path only
+     */
+    if(0 == AXIS2_STRCASECMP(protocol, "file"))
+    {
+        ret = axis2_url_create(env, protocol, NULL, 0, server);
+        AXIS2_FREE((*env)->allocator, tmp_url_str);
+        return ret;
+    }
 	port_str = strchr(server, ':');
 	if(NULL == port_str)
 	{



Mime
View raw message