📄 listeningpoint.html
字号:
<DD>Transport constant: UDP
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../constant-values.html#javax.sip.ListeningPoint.UDP">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="SCTP"><!-- --></A><H3>
SCTP</H3>
<PRE>
static final java.lang.String <B>SCTP</B></PRE>
<DL>
<DD>Transport constant: SCTP
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../constant-values.html#javax.sip.ListeningPoint.SCTP">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="TLS"><!-- --></A><H3>
TLS</H3>
<PRE>
static final java.lang.String <B>TLS</B></PRE>
<DL>
<DD>Transport constant: TLS over TCP
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../constant-values.html#javax.sip.ListeningPoint.TLS">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="PORT_5060"><!-- --></A><H3>
PORT_5060</H3>
<PRE>
static final int <B>PORT_5060</B></PRE>
<DL>
<DD>Port Constant: Default port 5060. This constant should only be used when the transport of the ListeningPoint is set to UDP, TCP or SCTP.
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../constant-values.html#javax.sip.ListeningPoint.PORT_5060">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="PORT_5061"><!-- --></A><H3>
PORT_5061</H3>
<PRE>
static final int <B>PORT_5061</B></PRE>
<DL>
<DD>Port Constant: Default port 5061. This constant should only be used when the transport of the Listening Point is set to TLS over TCP or TCP assuming the scheme is "sips".
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../constant-values.html#javax.sip.ListeningPoint.PORT_5061">Constant Field Values</A></DL>
</DL>
<!-- ============ METHOD DETAIL ========== -->
<A NAME="method_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Method Detail</B></FONT></TH>
</TR>
</TABLE>
<A NAME="getPort()"><!-- --></A><H3>
getPort</H3>
<PRE>
int <B>getPort</B>()</PRE>
<DL>
<DD>Gets the port of the ListeningPoint. The default port of a ListeningPoint is dependent on the scheme and transport. For example: <ul> <li>The default port is 5060, if the transport UDP and the scheme is <i>sip:</i>. <li>The default port is 5060, if the transport is TCP and the scheme is <i>sip:</i>. <li>The default port is 5060, if the transport is SCTP and the scheme is <i>sip:</i>. <li>The default port is 5061, if the transport is TLS over TCP and the scheme is <i>sip:</i>. <li>The default port is 5061, if the transport is TCP and the scheme is <i>sips:</i>. </ul>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>the integer value of the port.</DL>
</DD>
</DL>
<HR>
<A NAME="getTransport()"><!-- --></A><H3>
getTransport</H3>
<PRE>
java.lang.String <B>getTransport</B>()</PRE>
<DL>
<DD>Gets the transport of the ListeningPoint.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>the string value of the transport.</DL>
</DD>
</DL>
<HR>
<A NAME="getIPAddress()"><!-- --></A><H3>
getIPAddress</H3>
<PRE>
java.lang.String <B>getIPAddress</B>()</PRE>
<DL>
<DD>Gets the IP of the ListeningPoint.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>the string value of the IP address.<DT><B>Since:</B></DT>
<DD>v1.2</DD>
</DL>
</DD>
</DL>
<HR>
<A NAME="setSentBy(java.lang.String)"><!-- --></A><H3>
setSentBy</H3>
<PRE>
void <B>setSentBy</B>(java.lang.String sentBy)
throws java.text.ParseException</PRE>
<DL>
<DD>Sets the sentBy string for this ListeningPoint. The sentBy String is placed in the top most Via header of outgoing requests. This parameter is optional and if it is not set, the top most Via header will use the IP address and port assigned to the listening point for the sentBy field.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>sentBy</CODE> - the sentBy string to be set in requests top most Via headers.
<DT><B>Throws:</B>
<DD><CODE>java.text.ParseException</CODE> - which signals that an error has been reached unexpectedly while parsing the sentBy value.<DT><B>Since:</B></DT>
<DD>v1.2</DD>
</DL>
</DD>
</DL>
<HR>
<A NAME="getSentBy()"><!-- --></A><H3>
getSentBy</H3>
<PRE>
java.lang.String <B>getSentBy</B>()</PRE>
<DL>
<DD>Gets the sentBy attribute of the ListeningPoint.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>the string value of the sentBy attribute.<DT><B>Since:</B></DT>
<DD>v1.2</DD>
</DL>
</DD>
</DL>
<HR>
<A NAME="equals(java.lang.Object)"><!-- --></A><H3>
equals</H3>
<PRE>
boolean <B>equals</B>(java.lang.Object obj)</PRE>
<DL>
<DD>This method indicates whether the specified object is equal to this Listening Point. The specified object is equal to this ListeningPoint if the specified object is a ListeningPoint and the transport and port in the specified Listening Point is the same as this Listening Point.
<P>
<DD><DL>
<DT><B>Overrides:</B><DD><CODE>equals</CODE> in class <CODE>java.lang.Object</CODE></DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>obj</CODE> - the object with which to compare this ListeningPoint.
<DT><B>Returns:</B><DD>true if this ListeningPoint is "equal to" the obj argument; false otherwise.</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> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </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">
<A HREF="../../javax/sip/IOExceptionEvent.html" title="class in javax.sip"><B>PREV CLASS</B></A>
<A HREF="../../javax/sip/ObjectInUseException.html" title="class in javax.sip"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../index.html?javax/sip/ListeningPoint.html" target="_top"><B>FRAMES</B></A>
<A HREF="ListeningPoint.html" target="_top"><B>NO FRAMES</B></A>
<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: NESTED | <A HREF="#field_summary">FIELD</A> | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL: <A HREF="#field_detail">FIELD</A> | CONSTR | <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 + -