Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > 42b8e67cd59abacb81e11c7ba39524d1 > files > 123

apr-api-docs-1.4.2-1.fc15.noarch.rpm

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Apache Portable Runtime: apr_uri.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body onload='searchBox.OnSelectItem(0);'>
<!-- Generated by Doxygen 1.7.3 -->
<script type="text/javascript"><!--
var searchBox = new SearchBox("searchBox", "search",false,'Search');
--></script>
<div id="top">
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">Apache Portable Runtime</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li id="searchli">
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
<div class="header">
  <div class="headertitle">
<h1>apr_uri.h</h1>  </div>
</div>
<div class="contents">
<a href="apr__uri_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/* Licensed to the Apache Software Foundation (ASF) under one or more</span>
<a name="l00002"></a>00002 <span class="comment"> * contributor license agreements.  See the NOTICE file distributed with</span>
<a name="l00003"></a>00003 <span class="comment"> * this work for additional information regarding copyright ownership.</span>
<a name="l00004"></a>00004 <span class="comment"> * The ASF licenses this file to You under the Apache License, Version 2.0</span>
<a name="l00005"></a>00005 <span class="comment"> * (the &quot;License&quot;); you may not use this file except in compliance with</span>
<a name="l00006"></a>00006 <span class="comment"> * the License.  You may obtain a copy of the License at</span>
<a name="l00007"></a>00007 <span class="comment"> *</span>
<a name="l00008"></a>00008 <span class="comment"> *     http://www.apache.org/licenses/LICENSE-2.0</span>
<a name="l00009"></a>00009 <span class="comment"> *</span>
<a name="l00010"></a>00010 <span class="comment"> * Unless required by applicable law or agreed to in writing, software</span>
<a name="l00011"></a>00011 <span class="comment"> * distributed under the License is distributed on an &quot;AS IS&quot; BASIS,</span>
<a name="l00012"></a>00012 <span class="comment"> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</span>
<a name="l00013"></a>00013 <span class="comment"> * See the License for the specific language governing permissions and</span>
<a name="l00014"></a>00014 <span class="comment"> * limitations under the License.</span>
<a name="l00015"></a>00015 <span class="comment"> */</span>
<a name="l00016"></a>00016 
<a name="l00017"></a>00017 <span class="comment">/*</span>
<a name="l00018"></a>00018 <span class="comment"> * apr_uri.h: External Interface of apr_uri.c</span>
<a name="l00019"></a>00019 <span class="comment"> */</span>
<a name="l00020"></a>00020 <span class="comment"></span>
<a name="l00021"></a>00021 <span class="comment">/**</span>
<a name="l00022"></a>00022 <span class="comment"> * @file apr_uri.h</span>
<a name="l00023"></a>00023 <span class="comment"> * @brief APR-UTIL URI Routines</span>
<a name="l00024"></a>00024 <span class="comment"> */</span>
<a name="l00025"></a>00025 
<a name="l00026"></a>00026 <span class="preprocessor">#ifndef APR_URI_H</span>
<a name="l00027"></a>00027 <span class="preprocessor"></span><span class="preprocessor">#define APR_URI_H</span>
<a name="l00028"></a>00028 <span class="preprocessor"></span>
<a name="l00029"></a>00029 <span class="preprocessor">#include &quot;apu.h&quot;</span>
<a name="l00030"></a>00030 
<a name="l00031"></a>00031 <span class="preprocessor">#include &quot;<a class="code" href="apr__network__io_8h.html" title="APR Network library.">apr_network_io.h</a>&quot;</span>
<a name="l00032"></a>00032 
<a name="l00033"></a>00033 <span class="preprocessor">#ifdef __cplusplus</span>
<a name="l00034"></a>00034 <span class="preprocessor"></span><span class="keyword">extern</span> <span class="stringliteral">&quot;C&quot;</span> {
<a name="l00035"></a>00035 <span class="preprocessor">#endif</span>
<a name="l00036"></a>00036 <span class="preprocessor"></span><span class="comment"></span>
<a name="l00037"></a>00037 <span class="comment">/**</span>
<a name="l00038"></a>00038 <span class="comment"> * @defgroup APR_Util_URI URI</span>
<a name="l00039"></a>00039 <span class="comment"> * @ingroup APR_Util</span>
<a name="l00040"></a>00040 <span class="comment"> * @{</span>
<a name="l00041"></a>00041 <span class="comment"> */</span>
<a name="l00042"></a>00042 
<a name="l00043"></a><a class="code" href="group___a_p_r___util___u_r_i.html#ga0134a6dcaf62796e014c592ac4b2c09c">00043</a> <span class="preprocessor">#define APR_URI_FTP_DEFAULT_PORT         21 </span><span class="comment">/**&lt; default FTP port */</span>
<a name="l00044"></a><a class="code" href="group___a_p_r___util___u_r_i.html#ga4f4161d54207cf302b3c91cdda428be1">00044</a> <span class="preprocessor">#define APR_URI_SSH_DEFAULT_PORT         22 </span><span class="comment">/**&lt; default SSH port */</span>
<a name="l00045"></a><a class="code" href="group___a_p_r___util___u_r_i.html#ga0b6bcdfb9754edd6c160c9d6755df085">00045</a> <span class="preprocessor">#define APR_URI_TELNET_DEFAULT_PORT      23 </span><span class="comment">/**&lt; default telnet port */</span>
<a name="l00046"></a><a class="code" href="group___a_p_r___util___u_r_i.html#gaaf5bb1e53b22fa7ac4e88f415e7c2476">00046</a> <span class="preprocessor">#define APR_URI_GOPHER_DEFAULT_PORT      70 </span><span class="comment">/**&lt; default Gopher port */</span>
<a name="l00047"></a><a class="code" href="group___a_p_r___util___u_r_i.html#ga7a9fa7be10430864617b3a0a58dd5d12">00047</a> <span class="preprocessor">#define APR_URI_HTTP_DEFAULT_PORT        80 </span><span class="comment">/**&lt; default HTTP port */</span>
<a name="l00048"></a><a class="code" href="group___a_p_r___util___u_r_i.html#gaf9408c6288a8580b285d7af58f836856">00048</a> <span class="preprocessor">#define APR_URI_POP_DEFAULT_PORT        110 </span><span class="comment">/**&lt; default POP port */</span>
<a name="l00049"></a><a class="code" href="group___a_p_r___util___u_r_i.html#ga86ac4da6cabda295f87042fb258fc36b">00049</a> <span class="preprocessor">#define APR_URI_NNTP_DEFAULT_PORT       119 </span><span class="comment">/**&lt; default NNTP port */</span>
<a name="l00050"></a><a class="code" href="group___a_p_r___util___u_r_i.html#ga6e8aade3786adb75dc63b9d0bd3bfbb9">00050</a> <span class="preprocessor">#define APR_URI_IMAP_DEFAULT_PORT       143 </span><span class="comment">/**&lt; default IMAP port */</span>
<a name="l00051"></a><a class="code" href="group___a_p_r___util___u_r_i.html#ga329c26e04dd9449fd565f8ba76e8666c">00051</a> <span class="preprocessor">#define APR_URI_PROSPERO_DEFAULT_PORT   191 </span><span class="comment">/**&lt; default Prospero port */</span>
<a name="l00052"></a><a class="code" href="group___a_p_r___util___u_r_i.html#ga0807570c6ef5c3813f65915fb0c19ff2">00052</a> <span class="preprocessor">#define APR_URI_WAIS_DEFAULT_PORT       210 </span><span class="comment">/**&lt; default WAIS port */</span>
<a name="l00053"></a><a class="code" href="group___a_p_r___util___u_r_i.html#ga5c648234ed92d19a09232080779a0185">00053</a> <span class="preprocessor">#define APR_URI_LDAP_DEFAULT_PORT       389 </span><span class="comment">/**&lt; default LDAP port */</span>
<a name="l00054"></a><a class="code" href="group___a_p_r___util___u_r_i.html#ga9b319ff3bda42c0384fcfe0a2bc53254">00054</a> <span class="preprocessor">#define APR_URI_HTTPS_DEFAULT_PORT      443 </span><span class="comment">/**&lt; default HTTPS port */</span>
<a name="l00055"></a><a class="code" href="group___a_p_r___util___u_r_i.html#gab2aac3d460462c664e848203e8046c3b">00055</a> <span class="preprocessor">#define APR_URI_RTSP_DEFAULT_PORT       554 </span><span class="comment">/**&lt; default RTSP port */</span>
<a name="l00056"></a><a class="code" href="group___a_p_r___util___u_r_i.html#ga6333715b343024de16e20b645beb7634">00056</a> <span class="preprocessor">#define APR_URI_SNEWS_DEFAULT_PORT      563 </span><span class="comment">/**&lt; default SNEWS port */</span>
<a name="l00057"></a><a class="code" href="group___a_p_r___util___u_r_i.html#gaf5b775cba93ca7f1778320c33c5a3078">00057</a> <span class="preprocessor">#define APR_URI_ACAP_DEFAULT_PORT       674 </span><span class="comment">/**&lt; default ACAP port */</span>
<a name="l00058"></a><a class="code" href="group___a_p_r___util___u_r_i.html#ga94dc176de94e729cf565c87cd6db5ffd">00058</a> <span class="preprocessor">#define APR_URI_NFS_DEFAULT_PORT       2049 </span><span class="comment">/**&lt; default NFS port */</span>
<a name="l00059"></a><a class="code" href="group___a_p_r___util___u_r_i.html#ga04b234524306cac26f954abad9a15b46">00059</a> <span class="preprocessor">#define APR_URI_TIP_DEFAULT_PORT       3372 </span><span class="comment">/**&lt; default TIP port */</span>
<a name="l00060"></a><a class="code" href="group___a_p_r___util___u_r_i.html#ga9d9ca5a25b37ad3c41355d902a002622">00060</a> <span class="preprocessor">#define APR_URI_SIP_DEFAULT_PORT       5060 </span><span class="comment">/**&lt; default SIP port */</span>
<a name="l00061"></a>00061 <span class="comment"></span>
<a name="l00062"></a>00062 <span class="comment">/** Flags passed to unparse_uri_components(): */</span><span class="comment"></span>
<a name="l00063"></a>00063 <span class="comment">/** suppress &quot;scheme://user\@site:port&quot; */</span>
<a name="l00064"></a><a class="code" href="group___a_p_r___util___u_r_i.html#gaef80da6212c6838ac15bbcafa1e9745b">00064</a> <span class="preprocessor">#define APR_URI_UNP_OMITSITEPART    (1U&lt;&lt;0)</span>
<a name="l00065"></a>00065 <span class="preprocessor"></span><span class="comment">/** Just omit user */</span>
<a name="l00066"></a><a class="code" href="group___a_p_r___util___u_r_i.html#ga93a8095f746bb8d4f4e5d8d6ca102ebc">00066</a> <span class="preprocessor">#define APR_URI_UNP_OMITUSER        (1U&lt;&lt;1)</span>
<a name="l00067"></a>00067 <span class="preprocessor"></span><span class="comment">/** Just omit password */</span>
<a name="l00068"></a><a class="code" href="group___a_p_r___util___u_r_i.html#gaed3be741b9a68eb4ee156c6a35b137ff">00068</a> <span class="preprocessor">#define APR_URI_UNP_OMITPASSWORD    (1U&lt;&lt;2)</span>
<a name="l00069"></a>00069 <span class="preprocessor"></span><span class="comment">/** omit &quot;user:password\@&quot; part */</span>
<a name="l00070"></a><a class="code" href="group___a_p_r___util___u_r_i.html#gad573c75c47cc369ffc0a5776c3613494">00070</a> <span class="preprocessor">#define APR_URI_UNP_OMITUSERINFO    (APR_URI_UNP_OMITUSER | \</span>
<a name="l00071"></a>00071 <span class="preprocessor">                                     APR_URI_UNP_OMITPASSWORD)</span>
<a name="l00072"></a>00072 <span class="preprocessor"></span><span class="comment">/** Show plain text password (default: show XXXXXXXX) */</span>
<a name="l00073"></a><a class="code" href="group___a_p_r___util___u_r_i.html#ga527cd70521f12a7962df9976068dda29">00073</a> <span class="preprocessor">#define APR_URI_UNP_REVEALPASSWORD  (1U&lt;&lt;3)</span>
<a name="l00074"></a>00074 <span class="preprocessor"></span><span class="comment">/** Show &quot;scheme://user\@site:port&quot; only */</span>
<a name="l00075"></a><a class="code" href="group___a_p_r___util___u_r_i.html#ga95d614636f08ee93fbfc341f2ac664c2">00075</a> <span class="preprocessor">#define APR_URI_UNP_OMITPATHINFO    (1U&lt;&lt;4)</span>
<a name="l00076"></a>00076 <span class="preprocessor"></span><span class="comment">/** Omit the &quot;?queryarg&quot; from the path */</span>
<a name="l00077"></a><a class="code" href="group___a_p_r___util___u_r_i.html#ga41a4ebcf1930bcbd81aada6e3a06008b">00077</a> <span class="preprocessor">#define APR_URI_UNP_OMITQUERY       (1U&lt;&lt;5)</span>
<a name="l00078"></a>00078 <span class="preprocessor"></span><span class="comment"></span>
<a name="l00079"></a>00079 <span class="comment">/** @see apr_uri_t */</span>
<a name="l00080"></a><a class="code" href="group___a_p_r___util___u_r_i.html#ga44e5978712bd6ff4fb65314346c01392">00080</a> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structapr__uri__t.html">apr_uri_t</a> <a class="code" href="structapr__uri__t.html">apr_uri_t</a>;
<a name="l00081"></a>00081 <span class="comment"></span>
<a name="l00082"></a>00082 <span class="comment">/**</span>
<a name="l00083"></a>00083 <span class="comment"> * A structure to encompass all of the fields in a uri</span>
<a name="l00084"></a>00084 <span class="comment"> */</span>
<a name="l00085"></a><a class="code" href="structapr__uri__t.html">00085</a> <span class="keyword">struct </span><a class="code" href="structapr__uri__t.html">apr_uri_t</a> {<span class="comment"></span>
<a name="l00086"></a>00086 <span class="comment">    /** scheme (&quot;http&quot;/&quot;ftp&quot;/...) */</span>
<a name="l00087"></a><a class="code" href="structapr__uri__t.html#a5d62fa370265b6bc956aa86d36024a5d">00087</a>     <span class="keywordtype">char</span> *<a class="code" href="structapr__uri__t.html#a5d62fa370265b6bc956aa86d36024a5d">scheme</a>;<span class="comment"></span>
<a name="l00088"></a>00088 <span class="comment">    /** combined [user[:password]\@]host[:port] */</span>
<a name="l00089"></a><a class="code" href="structapr__uri__t.html#a985b18875320d40cdb33d722ecf20ac2">00089</a>     <span class="keywordtype">char</span> *<a class="code" href="structapr__uri__t.html#a985b18875320d40cdb33d722ecf20ac2">hostinfo</a>;<span class="comment"></span>
<a name="l00090"></a>00090 <span class="comment">    /** user name, as in http://user:passwd\@host:port/ */</span>
<a name="l00091"></a><a class="code" href="structapr__uri__t.html#a2b763f50bec4fda0cf67e5238275b5fd">00091</a>     <span class="keywordtype">char</span> *<a class="code" href="structapr__uri__t.html#a2b763f50bec4fda0cf67e5238275b5fd">user</a>;<span class="comment"></span>
<a name="l00092"></a>00092 <span class="comment">    /** password, as in http://user:passwd\@host:port/ */</span>
<a name="l00093"></a><a class="code" href="structapr__uri__t.html#a7eabf4f785f98a12762076f7519d3959">00093</a>     <span class="keywordtype">char</span> *<a class="code" href="structapr__uri__t.html#a7eabf4f785f98a12762076f7519d3959">password</a>;<span class="comment"></span>
<a name="l00094"></a>00094 <span class="comment">    /** hostname from URI (or from Host: header) */</span>
<a name="l00095"></a><a class="code" href="structapr__uri__t.html#a8c6bf3dfca3d159f091377d9f7228aec">00095</a>     <span class="keywordtype">char</span> *<a class="code" href="structapr__uri__t.html#a8c6bf3dfca3d159f091377d9f7228aec">hostname</a>;<span class="comment"></span>
<a name="l00096"></a>00096 <span class="comment">    /** port string (integer representation is in &quot;port&quot;) */</span>
<a name="l00097"></a><a class="code" href="structapr__uri__t.html#ad9d69051e1fb3f3709260c3c3c014012">00097</a>     <span class="keywordtype">char</span> *<a class="code" href="structapr__uri__t.html#ad9d69051e1fb3f3709260c3c3c014012">port_str</a>;<span class="comment"></span>
<a name="l00098"></a>00098 <span class="comment">    /** the request path (or NULL if only scheme://host was given) */</span>
<a name="l00099"></a><a class="code" href="structapr__uri__t.html#a61cff1baadb3c1b52a34b502c25bba7f">00099</a>     <span class="keywordtype">char</span> *<a class="code" href="structapr__uri__t.html#a61cff1baadb3c1b52a34b502c25bba7f">path</a>;<span class="comment"></span>
<a name="l00100"></a>00100 <span class="comment">    /** Everything after a &#39;?&#39; in the path, if present */</span>
<a name="l00101"></a><a class="code" href="structapr__uri__t.html#a88d889bcda9e95696022f04ffb470678">00101</a>     <span class="keywordtype">char</span> *<a class="code" href="structapr__uri__t.html#a88d889bcda9e95696022f04ffb470678">query</a>;<span class="comment"></span>
<a name="l00102"></a>00102 <span class="comment">    /** Trailing &quot;#fragment&quot; string, if present */</span>
<a name="l00103"></a><a class="code" href="structapr__uri__t.html#a0e4abeaa1379c79dcc6fdac01d76715a">00103</a>     <span class="keywordtype">char</span> *<a class="code" href="structapr__uri__t.html#a0e4abeaa1379c79dcc6fdac01d76715a">fragment</a>;
<a name="l00104"></a>00104 <span class="comment"></span>
<a name="l00105"></a>00105 <span class="comment">    /** structure returned from gethostbyname() */</span>
<a name="l00106"></a><a class="code" href="structapr__uri__t.html#a2ec4edaa7288f3c1ebcb8cbca3d0379c">00106</a>     <span class="keyword">struct </span><a class="code" href="structapr__uri__t.html#a2ec4edaa7288f3c1ebcb8cbca3d0379c">hostent</a> *<a class="code" href="structapr__uri__t.html#a2ec4edaa7288f3c1ebcb8cbca3d0379c">hostent</a>;
<a name="l00107"></a>00107 <span class="comment"></span>
<a name="l00108"></a>00108 <span class="comment">    /** The port number, numeric, valid only if port_str != NULL */</span>
<a name="l00109"></a><a class="code" href="structapr__uri__t.html#a6e6e858ce56b5d58389287c1cc1134fa">00109</a>     <a class="code" href="group__apr__network__io.html#gaa670a71960f6eb4fe0d0de2a1e7aba03">apr_port_t</a> <a class="code" href="structapr__uri__t.html#a6e6e858ce56b5d58389287c1cc1134fa">port</a>;
<a name="l00110"></a>00110     <span class="comment"></span>
<a name="l00111"></a>00111 <span class="comment">    /** has the structure been initialized */</span>
<a name="l00112"></a><a class="code" href="structapr__uri__t.html#a6f77dda6db6c31c2c3652f6026ea6b73">00112</a>     <span class="keywordtype">unsigned</span> <a class="code" href="structapr__uri__t.html#a6f77dda6db6c31c2c3652f6026ea6b73">is_initialized</a>:1;
<a name="l00113"></a>00113 <span class="comment"></span>
<a name="l00114"></a>00114 <span class="comment">    /** has the DNS been looked up yet */</span>
<a name="l00115"></a><a class="code" href="structapr__uri__t.html#ae28c03382cb6fcb226dfc76193699342">00115</a>     <span class="keywordtype">unsigned</span> <a class="code" href="structapr__uri__t.html#ae28c03382cb6fcb226dfc76193699342">dns_looked_up</a>:1;<span class="comment"></span>
<a name="l00116"></a>00116 <span class="comment">    /** has the dns been resolved yet */</span>
<a name="l00117"></a><a class="code" href="structapr__uri__t.html#a805976fea6ef65f3ec1185c7d6dcf7f3">00117</a>     <span class="keywordtype">unsigned</span> <a class="code" href="structapr__uri__t.html#a805976fea6ef65f3ec1185c7d6dcf7f3">dns_resolved</a>:1;
<a name="l00118"></a>00118 };
<a name="l00119"></a>00119 
<a name="l00120"></a>00120 <span class="comment">/* apr_uri.c */</span><span class="comment"></span>
<a name="l00121"></a>00121 <span class="comment">/**</span>
<a name="l00122"></a>00122 <span class="comment"> * Return the default port for a given scheme.  The schemes recognized are</span>
<a name="l00123"></a>00123 <span class="comment"> * http, ftp, https, gopher, wais, nntp, snews, and prospero</span>
<a name="l00124"></a>00124 <span class="comment"> * @param scheme_str The string that contains the current scheme</span>
<a name="l00125"></a>00125 <span class="comment"> * @return The default port for this scheme</span>
<a name="l00126"></a>00126 <span class="comment"> */</span> 
<a name="l00127"></a>00127 APU_DECLARE(<a class="code" href="group__apr__network__io.html#gaa670a71960f6eb4fe0d0de2a1e7aba03">apr_port_t</a>) <a class="code" href="group___a_p_r___util___u_r_i.html#gad3b7b49b802a674badfb3322c31662c7">apr_uri_port_of_scheme</a>(const <span class="keywordtype">char</span> *scheme_str);
<a name="l00128"></a>00128 <span class="comment"></span>
<a name="l00129"></a>00129 <span class="comment">/**</span>
<a name="l00130"></a>00130 <span class="comment"> * Unparse a apr_uri_t structure to an URI string.  Optionally </span>
<a name="l00131"></a>00131 <span class="comment"> * suppress the password for security reasons.</span>
<a name="l00132"></a>00132 <span class="comment"> * @param p The pool to allocate out of</span>
<a name="l00133"></a>00133 <span class="comment"> * @param uptr All of the parts of the uri</span>
<a name="l00134"></a>00134 <span class="comment"> * @param flags How to unparse the uri.  One of:</span>
<a name="l00135"></a>00135 <span class="comment"> * &lt;PRE&gt;</span>
<a name="l00136"></a>00136 <span class="comment"> *    APR_URI_UNP_OMITSITEPART        Suppress &quot;scheme://user\@site:port&quot; </span>
<a name="l00137"></a>00137 <span class="comment"> *    APR_URI_UNP_OMITUSER            Just omit user </span>
<a name="l00138"></a>00138 <span class="comment"> *    APR_URI_UNP_OMITPASSWORD        Just omit password </span>
<a name="l00139"></a>00139 <span class="comment"> *    APR_URI_UNP_OMITUSERINFO        Omit &quot;user:password\@&quot; part</span>
<a name="l00140"></a>00140 <span class="comment"> *    APR_URI_UNP_REVEALPASSWORD      Show plain text password (default: show XXXXXXXX)</span>
<a name="l00141"></a>00141 <span class="comment"> *    APR_URI_UNP_OMITPATHINFO        Show &quot;scheme://user\@site:port&quot; only </span>
<a name="l00142"></a>00142 <span class="comment"> *    APR_URI_UNP_OMITQUERY           Omit &quot;?queryarg&quot; or &quot;#fragment&quot; </span>
<a name="l00143"></a>00143 <span class="comment"> * &lt;/PRE&gt;</span>
<a name="l00144"></a>00144 <span class="comment"> * @return The uri as a string</span>
<a name="l00145"></a>00145 <span class="comment"> */</span>
<a name="l00146"></a>00146 APU_DECLARE(<span class="keywordtype">char</span> *) <a class="code" href="group___a_p_r___util___u_r_i.html#ga78b4562bbe4225a0d3087543690394a0">apr_uri_unparse</a>(<a class="code" href="group__apr__pools.html#gaf137f28edcf9a086cd6bc36c20d7cdfb">apr_pool_t</a> *p, 
<a name="l00147"></a>00147                                     const <a class="code" href="structapr__uri__t.html">apr_uri_t</a> *uptr,
<a name="l00148"></a>00148                                     <span class="keywordtype">unsigned</span> flags);
<a name="l00149"></a>00149 <span class="comment"></span>
<a name="l00150"></a>00150 <span class="comment">/**</span>
<a name="l00151"></a>00151 <span class="comment"> * Parse a given URI, fill in all supplied fields of a apr_uri_t</span>
<a name="l00152"></a>00152 <span class="comment"> * structure. This eliminates the necessity of extracting host, port,</span>
<a name="l00153"></a>00153 <span class="comment"> * path, query info repeatedly in the modules.</span>
<a name="l00154"></a>00154 <span class="comment"> * @param p The pool to allocate out of</span>
<a name="l00155"></a>00155 <span class="comment"> * @param uri The uri to parse</span>
<a name="l00156"></a>00156 <span class="comment"> * @param uptr The apr_uri_t to fill out</span>
<a name="l00157"></a>00157 <span class="comment"> * @return APR_SUCCESS for success or error code</span>
<a name="l00158"></a>00158 <span class="comment"> */</span>
<a name="l00159"></a>00159 APU_DECLARE(<a class="code" href="group__apr__errno.html#gaf76ee4543247e9fb3f3546203e590a6c">apr_status_t</a>) <a class="code" href="group___a_p_r___util___u_r_i.html#gabbef816426a66595caae8b60e92ee43c">apr_uri_parse</a>(<a class="code" href="group__apr__pools.html#gaf137f28edcf9a086cd6bc36c20d7cdfb">apr_pool_t</a> *p, const <span class="keywordtype">char</span> *uri, 
<a name="l00160"></a>00160                                         <a class="code" href="structapr__uri__t.html">apr_uri_t</a> *uptr);
<a name="l00161"></a>00161 <span class="comment"></span>
<a name="l00162"></a>00162 <span class="comment">/**</span>
<a name="l00163"></a>00163 <span class="comment"> * Special case for CONNECT parsing: it comes with the hostinfo part only</span>
<a name="l00164"></a>00164 <span class="comment"> * @param p The pool to allocate out of</span>
<a name="l00165"></a>00165 <span class="comment"> * @param hostinfo The hostinfo string to parse</span>
<a name="l00166"></a>00166 <span class="comment"> * @param uptr The apr_uri_t to fill out</span>
<a name="l00167"></a>00167 <span class="comment"> * @return APR_SUCCESS for success or error code</span>
<a name="l00168"></a>00168 <span class="comment"> */</span>
<a name="l00169"></a>00169 APU_DECLARE(<a class="code" href="group__apr__errno.html#gaf76ee4543247e9fb3f3546203e590a6c">apr_status_t</a>) <a class="code" href="group___a_p_r___util___u_r_i.html#gab3028922e6d1d1e038062bc5b0270f31">apr_uri_parse_hostinfo</a>(<a class="code" href="group__apr__pools.html#gaf137f28edcf9a086cd6bc36c20d7cdfb">apr_pool_t</a> *p, 
<a name="l00170"></a>00170                                                  const <span class="keywordtype">char</span> *hostinfo, 
<a name="l00171"></a>00171                                                  <a class="code" href="structapr__uri__t.html">apr_uri_t</a> *uptr);
<a name="l00172"></a>00172 <span class="comment"></span>
<a name="l00173"></a>00173 <span class="comment">/** @} */</span>
<a name="l00174"></a>00174 <span class="preprocessor">#ifdef __cplusplus</span>
<a name="l00175"></a>00175 <span class="preprocessor"></span>}
<a name="l00176"></a>00176 <span class="preprocessor">#endif</span>
<a name="l00177"></a>00177 <span class="preprocessor"></span>
<a name="l00178"></a>00178 <span class="preprocessor">#endif </span><span class="comment">/* APR_URI_H */</span>
</pre></div></div>
</div>
<!--- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Defines</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<hr class="footer"/><address class="footer"><small>Generated on Tue Feb 8 2011 for Apache Portable Runtime by&#160;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.3 </small></address>
</body>
</html>