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

📄 headerfactory.html

📁 jsip开发文档,对于开发SIP软电话和presence服务很有用
💻 HTML
📖 第 1 页 / 共 5 页
字号:
 value.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>eventType</CODE> - the new string containing the eventType value.
<DT><B>Returns:</B><DD>the newly created AllowEventsHeader object.
<DT><B>Throws:</B>
<DD><CODE>java.text.ParseException</CODE> - which signals that an error has been reached unexpectedly while parsing the eventType value.</DL>
</DD>
</DL>
<HR>

<A NAME="createAllowHeader(java.lang.String)"><!-- --></A><H3>
createAllowHeader</H3>
<PRE>
<A HREF="../../../javax/sip/header/AllowHeader.html" title="interface in javax.sip.header">AllowHeader</A> <B>createAllowHeader</B>(java.lang.String&nbsp;method)
                              throws java.text.ParseException</PRE>
<DL>
<DD>Creates a new AllowHeader based on the newly supplied method value.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>method</CODE> - the new string containing the method value.
<DT><B>Returns:</B><DD>the newly created AllowHeader object.
<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="createAuthenticationInfoHeader(java.lang.String)"><!-- --></A><H3>
createAuthenticationInfoHeader</H3>
<PRE>
<A HREF="../../../javax/sip/header/AuthenticationInfoHeader.html" title="interface in javax.sip.header">AuthenticationInfoHeader</A> <B>createAuthenticationInfoHeader</B>(java.lang.String&nbsp;response)
                                                        throws java.text.ParseException</PRE>
<DL>
<DD>Creates a new AuthenticationInfoHeader based on the newly supplied  response value.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>response</CODE> - the new string value of the response.
<DT><B>Returns:</B><DD>the newly created AuthenticationInfoHeader object.
<DT><B>Throws:</B>
<DD><CODE>java.text.ParseException</CODE> - which signals that an error has been reached unexpectedly while parsing the response value.</DL>
</DD>
</DL>
<HR>

<A NAME="createAuthorizationHeader(java.lang.String)"><!-- --></A><H3>
createAuthorizationHeader</H3>
<PRE>
<A HREF="../../../javax/sip/header/AuthorizationHeader.html" title="interface in javax.sip.header">AuthorizationHeader</A> <B>createAuthorizationHeader</B>(java.lang.String&nbsp;scheme)
                                              throws java.text.ParseException</PRE>
<DL>
<DD>Creates a new AuthorizationHeader based on the newly supplied  scheme value.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>scheme</CODE> - the new string value of the scheme.
<DT><B>Returns:</B><DD>the newly created AuthorizationHeader object.
<DT><B>Throws:</B>
<DD><CODE>java.text.ParseException</CODE> - which signals that an error has been reached unexpectedly while parsing the scheme value.</DL>
</DD>
</DL>
<HR>

<A NAME="createCSeqHeader(int, java.lang.String)"><!-- --></A><H3>
createCSeqHeader</H3>
<PRE>
<A HREF="../../../javax/sip/header/CSeqHeader.html" title="interface in javax.sip.header">CSeqHeader</A> <B>createCSeqHeader</B>(int&nbsp;sequenceNumber,
                            java.lang.String&nbsp;method)
                            throws java.text.ParseException,
                                   <A HREF="../../../javax/sip/InvalidArgumentException.html" title="class in javax.sip">InvalidArgumentException</A></PRE>
<DL>
<DD><B>Deprecated.</B>&nbsp;<I>Since 1.2. Use <A HREF="../../../javax/sip/header/HeaderFactory.html#createCSeqHeader(long, java.lang.String)"><CODE>createCSeqHeader(long, String)</CODE></A> method with type long.</I>
<P>
<DD>Creates a new CSeqHeader based on the newly supplied sequence number and  method values.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>sequenceNumber</CODE> - the new integer value of the sequence number.<DD><CODE>method</CODE> - the new string value of the method.
<DT><B>Returns:</B><DD>the newly created CSeqHeader object.
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../../javax/sip/InvalidArgumentException.html" title="class in javax.sip">InvalidArgumentException</A></CODE> - if supplied sequence number is less  than zero.
<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="createCSeqHeader(long, java.lang.String)"><!-- --></A><H3>
createCSeqHeader</H3>
<PRE>
<A HREF="../../../javax/sip/header/CSeqHeader.html" title="interface in javax.sip.header">CSeqHeader</A> <B>createCSeqHeader</B>(long&nbsp;sequenceNumber,
                            java.lang.String&nbsp;method)
                            throws java.text.ParseException,
                                   <A HREF="../../../javax/sip/InvalidArgumentException.html" title="class in javax.sip">InvalidArgumentException</A></PRE>
<DL>
<DD>Creates a new CSeqHeader based on the newly supplied sequence number and method values.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>sequenceNumber</CODE> - the new long value of the sequence number.<DD><CODE>method</CODE> - the new string value of the method.
<DT><B>Returns:</B><DD>the newly created CSeqHeader object.
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../../javax/sip/InvalidArgumentException.html" title="class in javax.sip">InvalidArgumentException</A></CODE> - if supplied sequence number is less than zero.
<DD><CODE>java.text.ParseException</CODE> - which signals that an error has been reached unexpectedly while parsing the method value.<DT><B>Since:</B></DT>
  <DD>v1.2</DD>
</DL>
</DD>
</DL>
<HR>

<A NAME="createCallIdHeader(java.lang.String)"><!-- --></A><H3>
createCallIdHeader</H3>
<PRE>
<A HREF="../../../javax/sip/header/CallIdHeader.html" title="interface in javax.sip.header">CallIdHeader</A> <B>createCallIdHeader</B>(java.lang.String&nbsp;callId)
                                throws java.text.ParseException</PRE>
<DL>
<DD>Creates a new CallIdHeader based on the newly supplied callId value.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>callId</CODE> - the new string value of the call-id.
<DT><B>Returns:</B><DD>the newly created CallIdHeader object.
<DT><B>Throws:</B>
<DD><CODE>java.text.ParseException</CODE> - which signals that an error has been reached unexpectedly while parsing the callId value.</DL>
</DD>
</DL>
<HR>

<A NAME="createCallInfoHeader(javax.sip.address.URI)"><!-- --></A><H3>
createCallInfoHeader</H3>
<PRE>
<A HREF="../../../javax/sip/header/CallInfoHeader.html" title="interface in javax.sip.header">CallInfoHeader</A> <B>createCallInfoHeader</B>(<A HREF="../../../javax/sip/address/URI.html" title="interface in javax.sip.address">URI</A>&nbsp;callInfo)</PRE>
<DL>
<DD>Creates a new CallInfoHeader based on the newly supplied callInfo value.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>callInfo</CODE> - the new URI value of the callInfo.
<DT><B>Returns:</B><DD>the newly created CallInfoHeader object.</DL>
</DD>
</DL>
<HR>

<A NAME="createContactHeader(javax.sip.address.Address)"><!-- --></A><H3>
createContactHeader</H3>
<PRE>
<A HREF="../../../javax/sip/header/ContactHeader.html" title="interface in javax.sip.header">ContactHeader</A> <B>createContactHeader</B>(<A HREF="../../../javax/sip/address/Address.html" title="interface in javax.sip.address">Address</A>&nbsp;address)</PRE>
<DL>
<DD>Creates a new ContactHeader based on the newly supplied address value.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>address</CODE> - the new Address value of the address.
<DT><B>Returns:</B><DD>the newly created ContactHeader object.</DL>
</DD>
</DL>
<HR>

<A NAME="createContactHeader()"><!-- --></A><H3>
createContactHeader</H3>
<PRE>
<A HREF="../../../javax/sip/header/ContactHeader.html" title="interface in javax.sip.header">ContactHeader</A> <B>createContactHeader</B>()</PRE>
<DL>
<DD>Creates a new wildcard ContactHeader. This is used in Register requests to indicate to the server that it should remove all locations the at which the user is currently available. This implies that the  following conditions are met: <ul> <li><code>ContactHeader.getAddress.getUserInfo() == *;</code> <li><code>ContactHeader.getAddress.isWildCard() == true;</code> <li><code>ContactHeader.getExpires() == 0;</code> </ul>
<P>
<DD><DL>

<DT><B>Returns:</B><DD>the newly created wildcard ContactHeader.</DL>
</DD>
</DL>
<HR>

<A NAME="createContentDispositionHeader(java.lang.String)"><!-- --></A><H3>
createContentDispositionHeader</H3>
<PRE>
<A HREF="../../../javax/sip/header/ContentDispositionHeader.html" title="interface in javax.sip.header">ContentDispositionHeader</A> <B>createContentDispositionHeader</B>(java.lang.String&nbsp;contentDispositionType)
                                                        throws java.text.ParseException</PRE>
<DL>
<DD>Creates a new ContentDispositionHeader based on the newly supplied  contentDisposition value.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>contentDispositionType</CODE> - the new string value of the contentDisposition.
<DT><B>Returns:</B><DD>the newly created ContentDispositionHeader object.
<DT><B>Throws:</B>
<DD><CODE>java.text.ParseException</CODE> - which signals that an error has been reached unexpectedly while parsing the contentDisposition value.</DL>
</DD>
</DL>
<HR>

<A NAME="createContentEncodingHeader(java.lang.String)"><!-- --></A><H3>
createContentEncodingHeader</H3>
<PRE>
<A HREF="../../../javax/sip/header/ContentEncodingHeader.html" title="interface in javax.sip.header">ContentEncodingHeader</A> <B>createContentEncodingHeader</B>(java.lang.String&nbsp;encoding)
                                                  throws java.text.ParseException</PRE>
<DL>
<DD>Creates a new ContentEncodingHeader based on the newly supplied encoding  value.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>encoding</CODE> - the new string containing the encoding value.
<DT><B>Returns:</B><DD>the newly created ContentEncodingHeader object.
<DT><B>Throws:</B>
<DD><CODE>java.text.ParseException</CODE> - which signals that an error has been reached unexpectedly while parsing the encoding value.</DL>
</DD>
</DL>
<HR>

<A NAME="createContentLanguageHeader(java.util.Locale)"><!-- --></A><H3>
createContentLanguageHeader</H3>
<PRE>
<A HREF="../../../javax/sip/header/ContentLanguageHeader.html" title="interface in javax.sip.header">ContentLanguageHeader</A> <B>createContentLanguageHeader</B>(java.util.Locale&nbsp;contentLanguage)</PRE>
<DL>
<DD>Creates a new ContentLanguageHeader based on the newly supplied  contentLanguage value.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>contentLanguage</CODE> - the new Locale value of the contentLanguage.
<DT><B>Returns:</B><DD>the newly created ContentLanguageHeader object.</DL>
</DD>

⌨️ 快捷键说明

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