⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 addressfactory.html

📁 jsip开发文档,对于开发SIP软电话和presence服务很有用
💻 HTML
📖 第 1 页 / 共 2 页
字号:
              throws java.text.ParseException</PRE>
<DL>
<DD>Creates a URI based on given URI string. The URI string is parsed in  order to create the new URI instance. Depending on the scheme the  returned may or may not be a SipURI or TelURL cast as a URI.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>uri</CODE> - - the new string value of the URI.
<DT><B>Throws:</B>
<DD><CODE>java.text.ParseException</CODE> - if the URI string is malformed.</DL>
</DD>
</DL>
<HR>

<A NAME="createSipURI(java.lang.String, java.lang.String)"><!-- --></A><H3>
createSipURI</H3>
<PRE>
<A HREF="../../../javax/sip/address/SipURI.html" title="interface in javax.sip.address">SipURI</A> <B>createSipURI</B>(java.lang.String&nbsp;user,
                    java.lang.String&nbsp;host)
                    throws java.text.ParseException</PRE>
<DL>
<DD>Creates a SipURI based on the given user and host components. The user component may be null.  <p> This create method first builds a URI in string form using the given  components as follows: <ul> <li>Initially, the result string is empty. <li>The scheme followed by a colon character ('sip:') is appended to  the result. <li>The user and host are then appended. Any character that is not a  legal URI character is quoted. </ul> <br> The resulting URI string is then parsed in order to create the new  SipURI instance as if by invoking the createURI(String) constructor;  this may cause a URISyntaxException to be thrown. <p> An application that wishes to create a 'sips' URI should call the  <A HREF="../../../javax/sip/address/SipURI.html#setSecure(boolean)"><CODE>SipURI.setSecure(boolean)</CODE></A> with an argument of 'true' on the  returned SipURI.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>user</CODE> - - the new string value of the user, this value may be null.<DD><CODE>host</CODE> - - the new string value of the host.
<DT><B>Throws:</B>
<DD><CODE>java.text.ParseException</CODE> - if the URI string is malformed.</DL>
</DD>
</DL>
<HR>

<A NAME="createTelURL(java.lang.String)"><!-- --></A><H3>
createTelURL</H3>
<PRE>
<A HREF="../../../javax/sip/address/TelURL.html" title="interface in javax.sip.address">TelURL</A> <B>createTelURL</B>(java.lang.String&nbsp;phoneNumber)
                    throws java.text.ParseException</PRE>
<DL>
<DD>Creates a TelURL based on given URI string. The scheme should  not be included in the phoneNumber string argument.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>phoneNumber</CODE> - the new string value of the phoneNumber.
<DT><B>Throws:</B>
<DD><CODE>java.text.ParseException</CODE> - if the URI string is malformed.</DL>
</DD>
</DL>
<HR>

<A NAME="createAddress(java.lang.String)"><!-- --></A><H3>
createAddress</H3>
<PRE>
<A HREF="../../../javax/sip/address/Address.html" title="interface in javax.sip.address">Address</A> <B>createAddress</B>(java.lang.String&nbsp;address)
                      throws java.text.ParseException</PRE>
<DL>
<DD>Creates an Address with the new address string value. The address  string is parsed in order to create the new Address instance.  Valid arguments obey the syntax for <code>name-addr</code> tokens in  RFC3261, for example "Bob <sip:bob@biloxi.com>".  It is recommended to  use the to use the name-addr form containing '<' '>' to avoid confusion  of URI parameters. As a special case, the  string argument "*" creates a wildcard Address object with the property  that <code>((SipURI)Address.getURI()).getUser()</code> returns a  String contain one character "*".
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>address</CODE> - - the new string value of the address.
<DT><B>Throws:</B>
<DD><CODE>java.text.ParseException</CODE> - which signals that an error has been reached unexpectedly while parsing the address value.</DL>
</DD>
</DL>
<HR>

<A NAME="createAddress(javax.sip.address.URI)"><!-- --></A><H3>
createAddress</H3>
<PRE>
<A HREF="../../../javax/sip/address/Address.html" title="interface in javax.sip.address">Address</A> <B>createAddress</B>(<A HREF="../../../javax/sip/address/URI.html" title="interface in javax.sip.address">URI</A>&nbsp;uri)</PRE>
<DL>
<DD>Creates an Address with the new URI attribute value.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>uri</CODE> - - the URI value of the address.</DL>
</DD>
</DL>
<HR>

<A NAME="createAddress(java.lang.String, javax.sip.address.URI)"><!-- --></A><H3>
createAddress</H3>
<PRE>
<A HREF="../../../javax/sip/address/Address.html" title="interface in javax.sip.address">Address</A> <B>createAddress</B>(java.lang.String&nbsp;displayName,
                      <A HREF="../../../javax/sip/address/URI.html" title="interface in javax.sip.address">URI</A>&nbsp;uri)
                      throws java.text.ParseException</PRE>
<DL>
<DD>Creates an Address with the new display name and URI attribute values.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>displayName</CODE> - - the new string value of the display name of the address. A <code>null</code> value does not set the display name.<DD><CODE>uri</CODE> - - the new URI value of the address.
<DT><B>Throws:</B>
<DD><CODE>java.text.ParseException</CODE> - which signals that an error has been reached unexpectedly while parsing the displayName value.</DL>
</DD>
</DL>
<!-- ========= END OF CLASS DATA ========= -->
<HR>


<!-- ======= START OF BOTTOM NAVBAR ====== -->
<A NAME="navbar_bottom"><!-- --></A>
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  <TR ALIGN="center" VALIGN="top">
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  </TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
<b>JSIP API v1.2<br><font size=-1>November 2006</font></b></EM>
</TD>
</TR>

<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../../javax/sip/address/Address.html" title="interface in javax.sip.address"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../../javax/sip/address/Hop.html" title="interface in javax.sip.address"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  <A HREF="../../../index.html?javax/sip/address/AddressFactory.html" target="_top"><B>FRAMES</B></A>  &nbsp;
&nbsp;<A HREF="AddressFactory.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
&nbsp;<SCRIPT type="text/javascript">
  <!--
  if(window==top) {
    document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
  }
  //-->
</SCRIPT>
<NOSCRIPT>
  <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>


</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL:&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_bottom"></A>
<!-- ======== END OF BOTTOM NAVBAR ======= -->

<HR>
<center>If you have any comments, please mail them to <a href=mailto:JAIN-SIP-INTEREST@java.sun.com>JAIN-SIP-INTEREST@java.sun.com</a> after subscribing at <a href=http://archives.java.sun.com>http://archives.java.sun.com</a><br><a href=../../../copyright.html>Copyright</a> - 2006 BEA Systems and Sun Microsystems</center>
</BODY>
</HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -