Subversion Repositories javautils

Rev

Blame | Last modification | View Log | RSS feed

  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2. <!--NewPage-->
  3. <HTML>
  4. <HEAD>
  5. <!-- Generated by javadoc (build 1.6.0_10) on Tue Nov 17 12:13:38 PST 2009 -->
  6. <META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
  7. <TITLE>
  8. URLName (JavaMail API documentation)
  9. </TITLE>
  10.  
  11. <META NAME="date" CONTENT="2009-11-17">
  12.  
  13. <LINK REL ="stylesheet" TYPE="text/css" HREF="../../stylesheet.css" TITLE="Style">
  14.  
  15. <SCRIPT type="text/javascript">
  16. function windowTitle()
  17. {
  18.     if (location.href.indexOf('is-external=true') == -1) {
  19.         parent.document.title="URLName (JavaMail API documentation)";
  20.     }
  21. }
  22. </SCRIPT>
  23. <NOSCRIPT>
  24. </NOSCRIPT>
  25.  
  26. </HEAD>
  27.  
  28. <BODY BGCOLOR="white" onload="windowTitle();">
  29. <HR>
  30.  
  31.  
  32. <!-- ========= START OF TOP NAVBAR ======= -->
  33. <A NAME="navbar_top"><!-- --></A>
  34. <A HREF="#skip-navbar_top" title="Skip navigation links"></A>
  35. <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
  36. <TR>
  37. <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
  38. <A NAME="navbar_top_firstrow"><!-- --></A>
  39. <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  40.   <TR ALIGN="center" VALIGN="top">
  41.   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  42.   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  43.   <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  44.   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/URLName.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
  45.   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  46.   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  47.   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  48.   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  49.   </TR>
  50. </TABLE>
  51. </TD>
  52. <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
  53. </EM>
  54. </TD>
  55. </TR>
  56.  
  57. <TR>
  58. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  59. &nbsp;<A HREF="../../javax/mail/UIDFolder.FetchProfileItem.html" title="class in javax.mail"><B>PREV CLASS</B></A>&nbsp;
  60. &nbsp;NEXT CLASS</FONT></TD>
  61. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  62.   <A HREF="../../index.html?javax/mail/URLName.html" target="_top"><B>FRAMES</B></A>  &nbsp;
  63. &nbsp;<A HREF="URLName.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
  64. &nbsp;<SCRIPT type="text/javascript">
  65.   <!--
  66.   if(window==top) {
  67.     document.writeln('<A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>');
  68.   }
  69.   //-->
  70. </SCRIPT>
  71. <NOSCRIPT>
  72.   <A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>
  73. </NOSCRIPT>
  74.  
  75.  
  76. </FONT></TD>
  77. </TR>
  78. <TR>
  79. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  80.   SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
  81. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  82. DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
  83. </TR>
  84. </TABLE>
  85. <A NAME="skip-navbar_top"></A>
  86. <!-- ========= END OF TOP NAVBAR ========= -->
  87.  
  88. <HR>
  89. <!-- ======== START OF CLASS DATA ======== -->
  90. <H2>
  91. <FONT SIZE="-1">
  92. javax.mail</FONT>
  93. <BR>
  94. Class URLName</H2>
  95. <PRE>
  96. <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</A>
  97.   <IMG SRC="../../resources/inherit.gif" ALT="extended by "><B>javax.mail.URLName</B>
  98. </PRE>
  99. <HR>
  100. <DL>
  101. <DT><PRE>public class <B>URLName</B><DT>extends <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></DL>
  102. </PRE>
  103.  
  104. <P>
  105. The name of a URL. This class represents a URL name and also
  106.  provides the basic parsing functionality to parse most internet
  107.  standard URL schemes. <p>
  108.  
  109.  Note that this class differs from <code>java.net.URL</code>
  110.  in that this class just represents the name of a URL, it does
  111.  not model the connection to a URL.
  112. <P>
  113.  
  114. <P>
  115. <HR>
  116.  
  117. <P>
  118. <!-- =========== FIELD SUMMARY =========== -->
  119.  
  120. <A NAME="field_summary"><!-- --></A>
  121. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  122. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  123. <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
  124. <B>Field Summary</B></FONT></TH>
  125. </TR>
  126. <TR BGCOLOR="white" CLASS="TableRowColor">
  127. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  128. <CODE>protected &nbsp;<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD>
  129. <TD><CODE><B><A HREF="../../javax/mail/URLName.html#fullURL">fullURL</A></B></CODE>
  130.  
  131. <BR>
  132. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The full version of the URL</TD>
  133. </TR>
  134. </TABLE>
  135. &nbsp;
  136. <!-- ======== CONSTRUCTOR SUMMARY ======== -->
  137.  
  138. <A NAME="constructor_summary"><!-- --></A>
  139. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  140. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  141. <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
  142. <B>Constructor Summary</B></FONT></TH>
  143. </TR>
  144. <TR BGCOLOR="white" CLASS="TableRowColor">
  145. <TD><CODE><B><A HREF="../../javax/mail/URLName.html#URLName(java.lang.String)">URLName</A></B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;url)</CODE>
  146.  
  147. <BR>
  148. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Construct a URLName from the string.</TD>
  149. </TR>
  150. <TR BGCOLOR="white" CLASS="TableRowColor">
  151. <TD><CODE><B><A HREF="../../javax/mail/URLName.html#URLName(java.lang.String, java.lang.String, int, java.lang.String, java.lang.String, java.lang.String)">URLName</A></B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;protocol,
  152.         <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;host,
  153.         int&nbsp;port,
  154.         <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;file,
  155.         <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;username,
  156.         <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;password)</CODE>
  157.  
  158. <BR>
  159. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a URLName object from the specified protocol,
  160.  host, port number, file, username, and password.</TD>
  161. </TR>
  162. <TR BGCOLOR="white" CLASS="TableRowColor">
  163. <TD><CODE><B><A HREF="../../javax/mail/URLName.html#URLName(java.net.URL)">URLName</A></B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/net/URL.html?is-external=true" title="class or interface in java.net">URL</A>&nbsp;url)</CODE>
  164.  
  165. <BR>
  166. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Construct a URLName from a java.net.URL object.</TD>
  167. </TR>
  168. </TABLE>
  169. &nbsp;
  170. <!-- ========== METHOD SUMMARY =========== -->
  171.  
  172. <A NAME="method_summary"><!-- --></A>
  173. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  174. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  175. <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
  176. <B>Method Summary</B></FONT></TH>
  177. </TR>
  178. <TR BGCOLOR="white" CLASS="TableRowColor">
  179. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  180. <CODE>&nbsp;boolean</CODE></FONT></TD>
  181. <TD><CODE><B><A HREF="../../javax/mail/URLName.html#equals(java.lang.Object)">equals</A></B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A>&nbsp;obj)</CODE>
  182.  
  183. <BR>
  184. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Compares two URLNames.</TD>
  185. </TR>
  186. <TR BGCOLOR="white" CLASS="TableRowColor">
  187. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  188. <CODE>&nbsp;<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD>
  189. <TD><CODE><B><A HREF="../../javax/mail/URLName.html#getFile()">getFile</A></B>()</CODE>
  190.  
  191. <BR>
  192. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the file name of this URLName.</TD>
  193. </TR>
  194. <TR BGCOLOR="white" CLASS="TableRowColor">
  195. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  196. <CODE>&nbsp;<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD>
  197. <TD><CODE><B><A HREF="../../javax/mail/URLName.html#getHost()">getHost</A></B>()</CODE>
  198.  
  199. <BR>
  200. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the host of this URLName.</TD>
  201. </TR>
  202. <TR BGCOLOR="white" CLASS="TableRowColor">
  203. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  204. <CODE>&nbsp;<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD>
  205. <TD><CODE><B><A HREF="../../javax/mail/URLName.html#getPassword()">getPassword</A></B>()</CODE>
  206.  
  207. <BR>
  208. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the password of this URLName.</TD>
  209. </TR>
  210. <TR BGCOLOR="white" CLASS="TableRowColor">
  211. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  212. <CODE>&nbsp;int</CODE></FONT></TD>
  213. <TD><CODE><B><A HREF="../../javax/mail/URLName.html#getPort()">getPort</A></B>()</CODE>
  214.  
  215. <BR>
  216. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the port number of this URLName.</TD>
  217. </TR>
  218. <TR BGCOLOR="white" CLASS="TableRowColor">
  219. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  220. <CODE>&nbsp;<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD>
  221. <TD><CODE><B><A HREF="../../javax/mail/URLName.html#getProtocol()">getProtocol</A></B>()</CODE>
  222.  
  223. <BR>
  224. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the protocol of this URLName.</TD>
  225. </TR>
  226. <TR BGCOLOR="white" CLASS="TableRowColor">
  227. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  228. <CODE>&nbsp;<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD>
  229. <TD><CODE><B><A HREF="../../javax/mail/URLName.html#getRef()">getRef</A></B>()</CODE>
  230.  
  231. <BR>
  232. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the reference of this URLName.</TD>
  233. </TR>
  234. <TR BGCOLOR="white" CLASS="TableRowColor">
  235. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  236. <CODE>&nbsp;<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/net/URL.html?is-external=true" title="class or interface in java.net">URL</A></CODE></FONT></TD>
  237. <TD><CODE><B><A HREF="../../javax/mail/URLName.html#getURL()">getURL</A></B>()</CODE>
  238.  
  239. <BR>
  240. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructs a URL from the URLName.</TD>
  241. </TR>
  242. <TR BGCOLOR="white" CLASS="TableRowColor">
  243. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  244. <CODE>&nbsp;<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD>
  245. <TD><CODE><B><A HREF="../../javax/mail/URLName.html#getUsername()">getUsername</A></B>()</CODE>
  246.  
  247. <BR>
  248. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the user name of this URLName.</TD>
  249. </TR>
  250. <TR BGCOLOR="white" CLASS="TableRowColor">
  251. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  252. <CODE>&nbsp;int</CODE></FONT></TD>
  253. <TD><CODE><B><A HREF="../../javax/mail/URLName.html#hashCode()">hashCode</A></B>()</CODE>
  254.  
  255. <BR>
  256. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Compute the hash code for this URLName.</TD>
  257. </TR>
  258. <TR BGCOLOR="white" CLASS="TableRowColor">
  259. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  260. <CODE>protected &nbsp;void</CODE></FONT></TD>
  261. <TD><CODE><B><A HREF="../../javax/mail/URLName.html#parseString(java.lang.String)">parseString</A></B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;url)</CODE>
  262.  
  263. <BR>
  264. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Method which does all of the work of parsing the string.</TD>
  265. </TR>
  266. <TR BGCOLOR="white" CLASS="TableRowColor">
  267. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  268. <CODE>&nbsp;<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD>
  269. <TD><CODE><B><A HREF="../../javax/mail/URLName.html#toString()">toString</A></B>()</CODE>
  270.  
  271. <BR>
  272. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructs a string representation of this URLName.</TD>
  273. </TR>
  274. </TABLE>
  275. &nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
  276. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  277. <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
  278. <TH ALIGN="left"><B>Methods inherited from class java.lang.<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></B></TH>
  279. </TR>
  280. <TR BGCOLOR="white" CLASS="TableRowColor">
  281. <TD><CODE><A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html?is-external=true#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD>
  282. </TR>
  283. </TABLE>
  284. &nbsp;
  285. <P>
  286.  
  287. <!-- ============ FIELD DETAIL =========== -->
  288.  
  289. <A NAME="field_detail"><!-- --></A>
  290. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  291. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  292. <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
  293. <B>Field Detail</B></FONT></TH>
  294. </TR>
  295. </TABLE>
  296.  
  297. <A NAME="fullURL"><!-- --></A><H3>
  298. fullURL</H3>
  299. <PRE>
  300. protected <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>fullURL</B></PRE>
  301. <DL>
  302. <DD>The full version of the URL
  303. <P>
  304. <DL>
  305. </DL>
  306. </DL>
  307.  
  308. <!-- ========= CONSTRUCTOR DETAIL ======== -->
  309.  
  310. <A NAME="constructor_detail"><!-- --></A>
  311. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  312. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  313. <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
  314. <B>Constructor Detail</B></FONT></TH>
  315. </TR>
  316. </TABLE>
  317.  
  318. <A NAME="URLName(java.lang.String, java.lang.String, int, java.lang.String, java.lang.String, java.lang.String)"><!-- --></A><H3>
  319. URLName</H3>
  320. <PRE>
  321. public <B>URLName</B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;protocol,
  322.                <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;host,
  323.                int&nbsp;port,
  324.                <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;file,
  325.                <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;username,
  326.                <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;password)</PRE>
  327. <DL>
  328. <DD>Creates a URLName object from the specified protocol,
  329.  host, port number, file, username, and password. Specifying a port
  330.  number of -1 indicates that the URL should use the default port for
  331.  the protocol.
  332. <P>
  333. </DL>
  334. <HR>
  335.  
  336. <A NAME="URLName(java.net.URL)"><!-- --></A><H3>
  337. URLName</H3>
  338. <PRE>
  339. public <B>URLName</B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/net/URL.html?is-external=true" title="class or interface in java.net">URL</A>&nbsp;url)</PRE>
  340. <DL>
  341. <DD>Construct a URLName from a java.net.URL object.
  342. <P>
  343. </DL>
  344. <HR>
  345.  
  346. <A NAME="URLName(java.lang.String)"><!-- --></A><H3>
  347. URLName</H3>
  348. <PRE>
  349. public <B>URLName</B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;url)</PRE>
  350. <DL>
  351. <DD>Construct a URLName from the string.  Parses out all the possible
  352.  information (protocol, host, port, file, username, password).
  353. <P>
  354. </DL>
  355.  
  356. <!-- ============ METHOD DETAIL ========== -->
  357.  
  358. <A NAME="method_detail"><!-- --></A>
  359. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  360. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  361. <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
  362. <B>Method Detail</B></FONT></TH>
  363. </TR>
  364. </TABLE>
  365.  
  366. <A NAME="toString()"><!-- --></A><H3>
  367. toString</H3>
  368. <PRE>
  369. public <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>toString</B>()</PRE>
  370. <DL>
  371. <DD>Constructs a string representation of this URLName.
  372. <P>
  373. <DD><DL>
  374. <DT><B>Overrides:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</A></CODE> in class <CODE><A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></CODE></DL>
  375. </DD>
  376. <DD><DL>
  377. </DL>
  378. </DD>
  379. </DL>
  380. <HR>
  381.  
  382. <A NAME="parseString(java.lang.String)"><!-- --></A><H3>
  383. parseString</H3>
  384. <PRE>
  385. protected void <B>parseString</B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;url)</PRE>
  386. <DL>
  387. <DD>Method which does all of the work of parsing the string.
  388. <P>
  389. <DD><DL>
  390. </DL>
  391. </DD>
  392. </DL>
  393. <HR>
  394.  
  395. <A NAME="getPort()"><!-- --></A><H3>
  396. getPort</H3>
  397. <PRE>
  398. public int <B>getPort</B>()</PRE>
  399. <DL>
  400. <DD>Returns the port number of this URLName.
  401.  Returns -1 if the port is not set.
  402. <P>
  403. <DD><DL>
  404. </DL>
  405. </DD>
  406. </DL>
  407. <HR>
  408.  
  409. <A NAME="getProtocol()"><!-- --></A><H3>
  410. getProtocol</H3>
  411. <PRE>
  412. public <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>getProtocol</B>()</PRE>
  413. <DL>
  414. <DD>Returns the protocol of this URLName.
  415.  Returns null if this URLName has no protocol.
  416. <P>
  417. <DD><DL>
  418. </DL>
  419. </DD>
  420. </DL>
  421. <HR>
  422.  
  423. <A NAME="getFile()"><!-- --></A><H3>
  424. getFile</H3>
  425. <PRE>
  426. public <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>getFile</B>()</PRE>
  427. <DL>
  428. <DD>Returns the file name of this URLName.
  429.  Returns null if this URLName has no file name.
  430. <P>
  431. <DD><DL>
  432. </DL>
  433. </DD>
  434. </DL>
  435. <HR>
  436.  
  437. <A NAME="getRef()"><!-- --></A><H3>
  438. getRef</H3>
  439. <PRE>
  440. public <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>getRef</B>()</PRE>
  441. <DL>
  442. <DD>Returns the reference of this URLName.
  443.  Returns null if this URLName has no reference.
  444. <P>
  445. <DD><DL>
  446. </DL>
  447. </DD>
  448. </DL>
  449. <HR>
  450.  
  451. <A NAME="getHost()"><!-- --></A><H3>
  452. getHost</H3>
  453. <PRE>
  454. public <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>getHost</B>()</PRE>
  455. <DL>
  456. <DD>Returns the host of this URLName.
  457.  Returns null if this URLName has no host.
  458. <P>
  459. <DD><DL>
  460. </DL>
  461. </DD>
  462. </DL>
  463. <HR>
  464.  
  465. <A NAME="getUsername()"><!-- --></A><H3>
  466. getUsername</H3>
  467. <PRE>
  468. public <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>getUsername</B>()</PRE>
  469. <DL>
  470. <DD>Returns the user name of this URLName.
  471.  Returns null if this URLName has no user name.
  472. <P>
  473. <DD><DL>
  474. </DL>
  475. </DD>
  476. </DL>
  477. <HR>
  478.  
  479. <A NAME="getPassword()"><!-- --></A><H3>
  480. getPassword</H3>
  481. <PRE>
  482. public <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>getPassword</B>()</PRE>
  483. <DL>
  484. <DD>Returns the password of this URLName.
  485.  Returns null if this URLName has no password.
  486. <P>
  487. <DD><DL>
  488. </DL>
  489. </DD>
  490. </DL>
  491. <HR>
  492.  
  493. <A NAME="getURL()"><!-- --></A><H3>
  494. getURL</H3>
  495. <PRE>
  496. public <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/net/URL.html?is-external=true" title="class or interface in java.net">URL</A> <B>getURL</B>()
  497.            throws <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/net/MalformedURLException.html?is-external=true" title="class or interface in java.net">MalformedURLException</A></PRE>
  498. <DL>
  499. <DD>Constructs a URL from the URLName.
  500. <P>
  501. <DD><DL>
  502.  
  503. <DT><B>Throws:</B>
  504. <DD><CODE><A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/net/MalformedURLException.html?is-external=true" title="class or interface in java.net">MalformedURLException</A></CODE></DL>
  505. </DD>
  506. </DL>
  507. <HR>
  508.  
  509. <A NAME="equals(java.lang.Object)"><!-- --></A><H3>
  510. equals</H3>
  511. <PRE>
  512. public boolean <B>equals</B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A>&nbsp;obj)</PRE>
  513. <DL>
  514. <DD>Compares two URLNames. The result is true if and only if the
  515.  argument is not null and is a URLName object that represents the
  516.  same URLName as this object. Two URLName objects are equal if
  517.  they have the same protocol and the same host,
  518.  the same port number on the host, the same username,
  519.  and the same file on the host. The fields (host, username,
  520.  file) are also considered the same if they are both
  521.  null.  <p>
  522.  
  523.  Hosts are considered equal if the names are equal (case independent)
  524.  or if host name lookups for them both succeed and they both reference
  525.  the same IP address. <p>
  526.  
  527.  Note that URLName has no knowledge of default port numbers for
  528.  particular protocols, so "imap://host" and "imap://host:143"
  529.  would not compare as equal. <p>
  530.  
  531.  Note also that the password field is not included in the comparison,
  532.  nor is any reference field appended to the filename.
  533. <P>
  534. <DD><DL>
  535. <DT><B>Overrides:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang">equals</A></CODE> in class <CODE><A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></CODE></DL>
  536. </DD>
  537. <DD><DL>
  538. </DL>
  539. </DD>
  540. </DL>
  541. <HR>
  542.  
  543. <A NAME="hashCode()"><!-- --></A><H3>
  544. hashCode</H3>
  545. <PRE>
  546. public int <B>hashCode</B>()</PRE>
  547. <DL>
  548. <DD>Compute the hash code for this URLName.
  549. <P>
  550. <DD><DL>
  551. <DT><B>Overrides:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</A></CODE> in class <CODE><A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></CODE></DL>
  552. </DD>
  553. <DD><DL>
  554. </DL>
  555. </DD>
  556. </DL>
  557. <!-- ========= END OF CLASS DATA ========= -->
  558. <HR>
  559.  
  560.  
  561. <!-- ======= START OF BOTTOM NAVBAR ====== -->
  562. <A NAME="navbar_bottom"><!-- --></A>
  563. <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
  564. <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
  565. <TR>
  566. <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
  567. <A NAME="navbar_bottom_firstrow"><!-- --></A>
  568. <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  569.   <TR ALIGN="center" VALIGN="top">
  570.   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  571.   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  572.   <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  573.   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/URLName.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
  574.   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  575.   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  576.   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  577.   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  578.   </TR>
  579. </TABLE>
  580. </TD>
  581. <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
  582. </EM>
  583. </TD>
  584. </TR>
  585.  
  586. <TR>
  587. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  588. &nbsp;<A HREF="../../javax/mail/UIDFolder.FetchProfileItem.html" title="class in javax.mail"><B>PREV CLASS</B></A>&nbsp;
  589. &nbsp;NEXT CLASS</FONT></TD>
  590. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  591.   <A HREF="../../index.html?javax/mail/URLName.html" target="_top"><B>FRAMES</B></A>  &nbsp;
  592. &nbsp;<A HREF="URLName.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
  593. &nbsp;<SCRIPT type="text/javascript">
  594.   <!--
  595.   if(window==top) {
  596.     document.writeln('<A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>');
  597.   }
  598.   //-->
  599. </SCRIPT>
  600. <NOSCRIPT>
  601.   <A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>
  602. </NOSCRIPT>
  603.  
  604.  
  605. </FONT></TD>
  606. </TR>
  607. <TR>
  608. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  609.   SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
  610. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  611. DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
  612. </TR>
  613. </TABLE>
  614. <A NAME="skip-navbar_bottom"></A>
  615. <!-- ======== END OF BOTTOM NAVBAR ======= -->
  616.  
  617. <HR>
  618. Copyright &#169; 2009 <a href="http://www.sun.com">Sun Microsystems, Inc.</a>. All Rights Reserved.
  619. </BODY>
  620. </HTML>
  621.