You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@axis.apache.org by "Damitha Kumarage (JIRA)" <ji...@apache.org> on 2006/06/05 08:35:29 UTC

[jira] Created: (AXIS2C-186) Return a URL created from a context URL and a relative 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: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org


[jira] Resolved: (AXIS2C-186) Return a URL created from a context URL and a relative URI

Posted by "Damitha Kumarage (JIRA)" <ji...@apache.org>.
     [ 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: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org