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 sa...@apache.org on 2006/05/16 11:18:00 UTC

svn commit: r406879 - /webservices/axis2/trunk/c/modules/util/url.c

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)
 	{