[ http://issues.apache.org/jira/browse/AXIS2C-186?page=all ] Damitha Kumarage resolved AXIS2C-186: -------------------------------------
Resolution: Fixed Created a new class called axis2_uri and it contain the above solution. The method is /** * Return a URI created from a context URI and a relative URI. * If a valid URI cannot be created the only other possibility * this method will consider is that an absolute file path has * been passed in as the relative URI argument, and it will try * to create a 'file' URI from it. * * @param context_uri the document base URI * @param uri a file URI relative to the context_uri or an * absolute file path * @return the URI created from context_uri and uri */ AXIS2_EXTERN axis2_uri_t *AXIS2_CALL axis2_uri_parse_relative( const axis2_env_t *env, const axis2_uri_t* base, const char* uri); > Return a URL created from a context URL and a relative URI > ---------------------------------------------------------- > > Key: AXIS2C-186 > URL: http://issues.apache.org/jira/browse/AXIS2C-186 > Project: Axis2-C > Type: Improvement > Components: util > Versions: 1.0.0 > Reporter: Damitha Kumarage > > I would like to have an implementation for the following function in > string_util. > /* > * Return a URL created from a context URL and a relative URI. > * If a valid URL cannot be created the only other possibility > * this method will consider is that an absolute file path has > * been passed in as the relative URI argument, and it will try > * to create a 'file' URL from it. > * > * @param context_url the document base URL > * @param file_spec a file URI relative to the context_url or an > * absolute file path > * @return the URL created from context_url and file_spec > */ > AXIS2_EXTERN axis2_url_t * AXIS2_CALL > axis2_string_util_get_url( > const axis2_env_t *env, > axis2_url_t *context_url, > axis2_char_t *file_spec) > Damitha -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]