1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE>XmHTML Programmers Manual: XmHTMLGetURLType</TITLE>
<META HTTP-EQUIV="Keywords" CONTENT="XmHTML, HTML, Motif, Widget, eXode, XntHelp, Linux">
<META HTTP-EQUIV="Reply-to" CONTENT="ripley@xs4all.nl">
<META HTTP-EQUIV="Description" CONTENT="XmHTMLGetURLType - obtain the classification of a Uniform Resource Locator.">
<META NAME="Author" CONTENT="Koen D'Hondt">
<META NAME="Copyright" content="1995-1997 by Ripley Software Development">
<META NAME="Source" content="$Source$">
<META NAME="Revision" content="$Revision$">
<META NAME="Font" content="helvetica">
<link rev="made" href="mailto:ripley@xs4all.nl">
<link rel="home" href="index.html">
<link rel="previous" href="GtHdAttr.html">
<link rel="next" href="HTGtVer.html">
<link rel="up" href="../man.html">
<link rel="copyright" href="copyrights.html">
</HEAD>
<BODY BGCOLOR="#FFFFFF" text="#000000">
<h3><font face="helvetica,arial">Name</font></h3>
<blockquote>
XmHTMLGetURLType - obtain the classification of a Uniform Resource Locator.
</blockquote>
<h3><font face="helvetica,arial">Synopsis</font></h3>
<blockquote>
URLType XmHTMLGetURLType(String href)
</blockquote>
<h3><font face="helvetica,arial">Description</font></h3>
<blockquote>
XmHTMLGetURLType classifies Uniform Resource Locators (URLs). A URL can
be thought of as a networked extension of the standard filename concept:
not only can it point to a file (in a directory), but that file (and
directory) can exist on any machine in a network, and can be served via
any of several methods. It might not even be a file: URLs can also point
to queries, documents stored within databases, the results of commands,...
<p>
<dl>
<dt>href
<dd>Specifies the URL to be classified.
</dl>
</blockquote>
<h3><font face="helvetica,arial">Return Value</font></h3>
<blockquote>
One of the following constants (port numbers are only shown for
demonstration purposes):
</blockquote>
<pre>
typedef enum{
ANCHOR_UNKNOWN = 0, /* unknown href */
ANCHOR_NAMED, /* name="...." */
ANCHOR_JUMP, /* href="#..." */
ANCHOR_FILE_LOCAL, /* href="file.html"
* href="file:/file.html" (clearly local)
* href="file:///file.html" (NULL host)
* href="file://localhost/file.html" (localhost)
*/
ANCHOR_FILE_REMOTE, /* href="file://foo.bar/file.html" */
ANCHOR_FTP, /* href="ftp://foo.bar/file" */
ANCHOR_HTTP, /* href="http://foo.bar/file.html" */
ANCHOR_SECURE_HTTP, /* href="https://foo.bar/file.html" */
ANCHOR_GOPHER, /* href="gopher://foo.bar:70" */
ANCHOR_WAIS, /* href="wais://foo.bar" */
ANCHOR_NEWS, /* href="news://foo.bar" */
ANCHOR_TELNET, /* href="telnet://foo.bar:23" */
ANCHOR_MAILTO, /* href="mailto:foo@bar" */
ANCHOR_EXEC, /* href="exec:foo_bar" */
ANCHOR_PIPE /* href="pipe:foo_bar" */
}URLType
</pre>
<h3><font face="helvetica,arial">See Also</font></h3>
<blockquote>
XmHTML(3X), <a href="http://www.w3.org/Addressing/rfc1738.txt">RFC 1738</a>
</blockquote>
<hr noshade size="2" width="25%">
<i><font size="-1">
XmHTML, October 7, 1997
</font></i>
</body>
</html>
|