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

📄 sipuri.html

📁 jsip开发文档,对于开发SIP软电话和presence服务很有用
💻 HTML
📖 第 1 页 / 共 3 页
字号:
</DD>
</DL>
<HR>

<A NAME="getHeaderNames()"><!-- --></A><H3>
getHeaderNames</H3>
<PRE>
java.util.Iterator <B>getHeaderNames</B>()</PRE>
<DL>
<DD>Returns an Iterator over the String names of all headers present in this SipURI.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>

<DT><B>Returns:</B><DD>an Iterator over all the header names</DL>
</DD>
</DL>
<HR>

<A NAME="getTransportParam()"><!-- --></A><H3>
getTransportParam</H3>
<PRE>
java.lang.String <B>getTransportParam</B>()</PRE>
<DL>
<DD>Returns the value of the "transport" parameter, or null if this is not set. This is equivalent to getParameter("transport").
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>

<DT><B>Returns:</B><DD>the transport paramter of the SipURI</DL>
</DD>
</DL>
<HR>

<A NAME="setTransportParam(java.lang.String)"><!-- --></A><H3>
setTransportParam</H3>
<PRE>
void <B>setTransportParam</B>(java.lang.String&nbsp;transport)
                       throws java.text.ParseException</PRE>
<DL>
<DD>Sets the value of the "transport" parameter. This parameter specifies which transport protocol to use for sending requests and responses to this entity. The following values are defined: "udp", "tcp", "sctp", "tls", but other values may be used also. This method is equivalent to setParameter("transport", transport). Transport parameter constants are defined in the <A HREF="../../../javax/sip/ListeningPoint.html" title="interface in javax.sip"><CODE>ListeningPoint</CODE></A>.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>transport</CODE> - - new value for the "transport" parameter
<DT><B>Throws:</B>
<DD><CODE>java.text.ParseException</CODE> - which signals that an error has been reached unexpectedly while parsing the transport value.</DL>
</DD>
</DL>
<HR>

<A NAME="getTTLParam()"><!-- --></A><H3>
getTTLParam</H3>
<PRE>
int <B>getTTLParam</B>()</PRE>
<DL>
<DD>Returns the value of the "ttl" parameter, or -1 if this is not set. This method is equivalent to getParameter("ttl").
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>

<DT><B>Returns:</B><DD>the value of the <code>ttl</code> parameter</DL>
</DD>
</DL>
<HR>

<A NAME="setTTLParam(int)"><!-- --></A><H3>
setTTLParam</H3>
<PRE>
void <B>setTTLParam</B>(int&nbsp;ttl)
                 throws <A HREF="../../../javax/sip/InvalidArgumentException.html" title="class in javax.sip">InvalidArgumentException</A></PRE>
<DL>
<DD>Sets the value of the <code>ttl</code> parameter. The ttl parameter specifies the time-to-live value when packets are sent using UDP multicast. This is equivalent to setParameter("ttl", ttl).
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>ttl</CODE> - - new value of the <code>ttl</code> parameter
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../../javax/sip/InvalidArgumentException.html" title="class in javax.sip">InvalidArgumentException</A></CODE> - if supplied value is less than zero,  excluding -1 the default not set value.</DL>
</DD>
</DL>
<HR>

<A NAME="getMethodParam()"><!-- --></A><H3>
getMethodParam</H3>
<PRE>
java.lang.String <B>getMethodParam</B>()</PRE>
<DL>
<DD>Returns the value of the <code>method</code> parameter, or null if this is not set. This is equivalent to getParameter("method").
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>

<DT><B>Returns:</B><DD>the value of the <code>method</code> parameter</DL>
</DD>
</DL>
<HR>

<A NAME="setMethodParam(java.lang.String)"><!-- --></A><H3>
setMethodParam</H3>
<PRE>
void <B>setMethodParam</B>(java.lang.String&nbsp;method)
                    throws java.text.ParseException</PRE>
<DL>
<DD>Sets the value of the <code>method</code> parameter. This specifies which SIP method to use in requests directed at this URI. This is equivalent to setParameter("method", method).
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>method</CODE> - - new value String value of the method parameter
<DT><B>Throws:</B>
<DD><CODE>java.text.ParseException</CODE> - which signals that an error has been reached unexpectedly while parsing the method value.</DL>
</DD>
</DL>
<HR>

<A NAME="setUserParam(java.lang.String)"><!-- --></A><H3>
setUserParam</H3>
<PRE>
void <B>setUserParam</B>(java.lang.String&nbsp;userParam)
                  throws java.text.ParseException</PRE>
<DL>
<DD>Sets the value of the user parameter. The user URI parameter exists to distinguish telephone numbers from user names that happen to look like telephone numbers.  This is equivalent to setParameter("user", user).
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>userParam</CODE> - - new value String value of the method parameter
<DT><B>Throws:</B>
<DD><CODE>java.text.ParseException</CODE> - which signals that an error has been reached unexpectedly while parsing the userParam value.</DL>
</DD>
</DL>
<HR>

<A NAME="getUserParam()"><!-- --></A><H3>
getUserParam</H3>
<PRE>
java.lang.String <B>getUserParam</B>()</PRE>
<DL>
<DD>Returns the value of the <code>userParam</code>, or null if this is not set. <p> This is equivalent to getParameter("user").
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>

<DT><B>Returns:</B><DD>the value of the <code>userParam</code> of the SipURI</DL>
</DD>
</DL>
<HR>

<A NAME="getMAddrParam()"><!-- --></A><H3>
getMAddrParam</H3>
<PRE>
java.lang.String <B>getMAddrParam</B>()</PRE>
<DL>
<DD>Returns the value of the <code>maddr</code> parameter, or null if this is not set. This is equivalent to getParameter("maddr").
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>

<DT><B>Returns:</B><DD>the value of the <code>maddr</code> parameter</DL>
</DD>
</DL>
<HR>

<A NAME="setMAddrParam(java.lang.String)"><!-- --></A><H3>
setMAddrParam</H3>
<PRE>
void <B>setMAddrParam</B>(java.lang.String&nbsp;mAddr)
                   throws java.text.ParseException</PRE>
<DL>
<DD>Sets the value of the <code>maddr</code> parameter of this SipURI. The maddr parameter indicates the server address to be contacted for this user, overriding any address derived from the host field. This is equivalent to setParameter("maddr", maddr).
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>mAddr</CODE> - new value of the <code>maddr</code> parameter
<DT><B>Throws:</B>
<DD><CODE>java.text.ParseException</CODE> - which signals that an error has been reached unexpectedly while parsing the mAddr value.</DL>
</DD>
</DL>
<HR>

<A NAME="hasLrParam()"><!-- --></A><H3>
hasLrParam</H3>
<PRE>
boolean <B>hasLrParam</B>()</PRE>
<DL>
<DD>Returns whether the the <code>lr</code> parameter is set. This is  equivalent to hasParameter("lr"). This interface has no getLrParam as  RFC3261 does not specify any values for the "lr" paramater.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>

<DT><B>Returns:</B><DD>true if the "lr" parameter is set, false otherwise.</DL>
</DD>
</DL>
<HR>

<A NAME="setLrParam()"><!-- --></A><H3>
setLrParam</H3>
<PRE>
void <B>setLrParam</B>()</PRE>
<DL>
<DD>Sets the value of the <code>lr</code> parameter of this SipURI. The lr parameter, when present, indicates that the element responsible for this resource implements the routing mechanisms specified in RFC 3261. This parameter will be used in the URIs proxies place in the Record-Route header field values, and may appear in the URIs in a pre-existing route set.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="toString()"><!-- --></A><H3>
toString</H3>
<PRE>
java.lang.String <B>toString</B>()</PRE>
<DL>
<DD>This method returns the URI as a string.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../javax/sip/address/URI.html#toString()">toString</A></CODE> in interface <CODE><A HREF="../../../javax/sip/address/URI.html" title="interface in javax.sip.address">URI</A></CODE><DT><B>Overrides:</B><DD><CODE>toString</CODE> in class <CODE>java.lang.Object</CODE></DL>
</DD>
<DD><DL>

<DT><B>Returns:</B><DD>the stringified version of the URI</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/Router.html" title="interface in javax.sip.address"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../../javax/sip/address/TelURL.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/SipURI.html" target="_top"><B>FRAMES</B></A>  &nbsp;
&nbsp;<A HREF="SipURI.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 + -