📄 headerfactory.html
字号:
</DL>
<HR>
<A NAME="createContentLengthHeader(int)"><!-- --></A><H3>
createContentLengthHeader</H3>
<PRE>
<A HREF="../../../javax/sip/header/ContentLengthHeader.html" title="interface in javax.sip.header">ContentLengthHeader</A> <B>createContentLengthHeader</B>(int contentLength)
throws <A HREF="../../../javax/sip/InvalidArgumentException.html" title="class in javax.sip">InvalidArgumentException</A></PRE>
<DL>
<DD>Creates a new ContentLengthHeader based on the newly supplied contentLength value.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>contentLength</CODE> - the new integer value of the contentLength.
<DT><B>Returns:</B><DD>the newly created ContentLengthHeader object.
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../../javax/sip/InvalidArgumentException.html" title="class in javax.sip">InvalidArgumentException</A></CODE> - if supplied contentLength is less than zero.</DL>
</DD>
</DL>
<HR>
<A NAME="createContentTypeHeader(java.lang.String, java.lang.String)"><!-- --></A><H3>
createContentTypeHeader</H3>
<PRE>
<A HREF="../../../javax/sip/header/ContentTypeHeader.html" title="interface in javax.sip.header">ContentTypeHeader</A> <B>createContentTypeHeader</B>(java.lang.String contentType,
java.lang.String contentSubType)
throws java.text.ParseException</PRE>
<DL>
<DD>Creates a new ContentTypeHeader based on the newly supplied contentType and contentSubType values.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>contentType</CODE> - the new string content type value.<DD><CODE>contentSubType</CODE> - the new string content sub-type value.
<DT><B>Returns:</B><DD>the newly created ContentTypeHeader object.
<DT><B>Throws:</B>
<DD><CODE>java.text.ParseException</CODE> - which signals that an error has been reached unexpectedly while parsing the content type or content subtype value.</DL>
</DD>
</DL>
<HR>
<A NAME="createDateHeader(java.util.Calendar)"><!-- --></A><H3>
createDateHeader</H3>
<PRE>
<A HREF="../../../javax/sip/header/DateHeader.html" title="interface in javax.sip.header">DateHeader</A> <B>createDateHeader</B>(java.util.Calendar date)</PRE>
<DL>
<DD>Creates a new DateHeader based on the newly supplied date value.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>date</CODE> - the new Calender value of the date.
<DT><B>Returns:</B><DD>the newly created DateHeader object.</DL>
</DD>
</DL>
<HR>
<A NAME="createErrorInfoHeader(javax.sip.address.URI)"><!-- --></A><H3>
createErrorInfoHeader</H3>
<PRE>
<A HREF="../../../javax/sip/header/ErrorInfoHeader.html" title="interface in javax.sip.header">ErrorInfoHeader</A> <B>createErrorInfoHeader</B>(<A HREF="../../../javax/sip/address/URI.html" title="interface in javax.sip.address">URI</A> errorInfo)</PRE>
<DL>
<DD>Creates a new ErrorInfoHeader based on the newly supplied errorInfo value.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>errorInfo</CODE> - the new URI value of the errorInfo.
<DT><B>Returns:</B><DD>the newly created ErrorInfoHeader object.</DL>
</DD>
</DL>
<HR>
<A NAME="createEventHeader(java.lang.String)"><!-- --></A><H3>
createEventHeader</H3>
<PRE>
<A HREF="../../../javax/sip/header/EventHeader.html" title="interface in javax.sip.header">EventHeader</A> <B>createEventHeader</B>(java.lang.String eventType)
throws java.text.ParseException</PRE>
<DL>
<DD>Creates a new EventHeader based on the newly supplied eventType value.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>eventType</CODE> - the new string value of the eventType.
<DT><B>Returns:</B><DD>the newly created EventHeader 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="createExpiresHeader(int)"><!-- --></A><H3>
createExpiresHeader</H3>
<PRE>
<A HREF="../../../javax/sip/header/ExpiresHeader.html" title="interface in javax.sip.header">ExpiresHeader</A> <B>createExpiresHeader</B>(int expires)
throws <A HREF="../../../javax/sip/InvalidArgumentException.html" title="class in javax.sip">InvalidArgumentException</A></PRE>
<DL>
<DD>Creates a new ExpiresHeader based on the newly supplied expires value.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>expires</CODE> - the new integer value of the expires.
<DT><B>Returns:</B><DD>the newly created ExpiresHeader object.
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../../javax/sip/InvalidArgumentException.html" title="class in javax.sip">InvalidArgumentException</A></CODE> - if supplied expires is less than zero.</DL>
</DD>
</DL>
<HR>
<A NAME="createHeader(java.lang.String, java.lang.String)"><!-- --></A><H3>
createHeader</H3>
<PRE>
<A HREF="../../../javax/sip/header/Header.html" title="interface in javax.sip.header">Header</A> <B>createHeader</B>(java.lang.String name,
java.lang.String value)
throws java.text.ParseException</PRE>
<DL>
<DD>Creates a new Header based on the newly supplied name and value values. This method can be used to create ExtensionHeaders.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>name</CODE> - the new string name of the Header value.<DD><CODE>value</CODE> - the new string value of the Header.
<DT><B>Returns:</B><DD>the newly created Header object.
<DT><B>Throws:</B>
<DD><CODE>java.text.ParseException</CODE> - which signals that an error has been reached unexpectedly while parsing the name or value values.<DT><B>See Also:</B><DD><A HREF="../../../javax/sip/header/ExtensionHeader.html" title="interface in javax.sip.header"><CODE>ExtensionHeader</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="createHeaders(java.lang.String)"><!-- --></A><H3>
createHeaders</H3>
<PRE>
java.util.List <B>createHeaders</B>(java.lang.String headers)
throws java.text.ParseException</PRE>
<DL>
<DD>Creates a new List of Headers based on a supplied comma seperated list of Header values for a single header name. This method can be used only for SIP headers whose grammar is of the form header = header-name HCOLON header-value *(COMMA header-value) that allows for combining header fields of the same name into a comma-separated list. Note that the Contact header field allows a comma-separated list unless the header field value is "*"
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>headers</CODE> - the new string comma seperated list of Header values.
<DT><B>Returns:</B><DD>the newly created List of Header objects.
<DT><B>Throws:</B>
<DD><CODE>java.text.ParseException</CODE> - which signals that an error has been reached unexpectedly while parsing the headers value or a List of that Header type is not allowed.</DL>
</DD>
</DL>
<HR>
<A NAME="createFromHeader(javax.sip.address.Address, java.lang.String)"><!-- --></A><H3>
createFromHeader</H3>
<PRE>
<A HREF="../../../javax/sip/header/FromHeader.html" title="interface in javax.sip.header">FromHeader</A> <B>createFromHeader</B>(<A HREF="../../../javax/sip/address/Address.html" title="interface in javax.sip.address">Address</A> address,
java.lang.String tag)
throws java.text.ParseException</PRE>
<DL>
<DD>Creates a new FromHeader based on the newly supplied address and tag values.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>address</CODE> - the new Address object of the address.<DD><CODE>tag</CODE> - the new string value of the tag.
<DT><B>Returns:</B><DD>the newly created FromHeader object.
<DT><B>Throws:</B>
<DD><CODE>java.text.ParseException</CODE> - which signals that an error has been reached unexpectedly while parsing the tag value.</DL>
</DD>
</DL>
<HR>
<A NAME="createInReplyToHeader(java.lang.String)"><!-- --></A><H3>
createInReplyToHeader</H3>
<PRE>
<A HREF="../../../javax/sip/header/InReplyToHeader.html" title="interface in javax.sip.header">InReplyToHeader</A> <B>createInReplyToHeader</B>(java.lang.String callId)
throws java.text.ParseException</PRE>
<DL>
<DD>Creates a new InReplyToHeader based on the newly supplied callId value.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>callId</CODE> - the new string containing the callId value.
<DT><B>Returns:</B><DD>the newly created InReplyToHeader 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="createMaxForwardsHeader(int)"><!-- --></A><H3>
createMaxForwardsHeader</H3>
<PRE>
<A HREF="../../../javax/sip/header/MaxForwardsHeader.html" title="interface in javax.sip.header">MaxForwardsHeader</A> <B>createMaxForwardsHeader</B>(int maxForwards)
throws <A HREF="../../../javax/sip/InvalidArgumentException.html" title="class in javax.sip">InvalidArgumentException</A></PRE>
<DL>
<DD>Creates a new MaxForwardsHeader based on the newly supplied maxForwards value.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>maxForwards</CODE> - the new integer value of the maxForwards.
<DT><B>Returns:</B><DD>the newly created MaxForwardsHeader object.
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../../javax/sip/InvalidArgumentException.html" title="class in javax.sip">InvalidArgumentException</A></CODE> - if supplied maxForwards is less than zero or greater than 255.</DL>
</DD>
</DL>
<HR>
<A NAME="createMimeVersionHeader(int, int)"><!-- --></A><H3>
createMimeVersionHeader</H3>
<PRE>
<A HREF="../../../javax/sip/header/MimeVersionHeader.html" title="interface in javax.sip.header">MimeVersionHeader</A> <B>createMimeVersionHeader</B>(int majorVersion,
int minorVersion)
throws <A HREF="../../../javax/sip/InvalidArgumentException.html" title="class in javax.sip">InvalidArgumentException</A></PRE>
<DL>
<DD>Creates a new MimeVersionHeader based on the newly supplied mimeVersion values.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>majorVersion</CODE> - the new integer value of the majorVersion.<DD><CODE>minorVersion</CODE> - the new integer value of the minorVersion.
<DT><B>Returns:</B><DD>the newly created MimeVersionHeader object.
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../../javax/sip/InvalidArgumentException.html" title="class in javax.sip">InvalidArgumentException</A></CODE> - if supplied majorVersion or minorVersion is less than zero.</DL>
</DD>
</DL>
<HR>
<A NAME="createMinExpiresHeader(int)"><!-- --></A><H3>
createMinExpiresHeader</H3>
<PRE>
<A HREF="../../../javax/sip/header/MinExpiresHeader.html" title="interface in javax.sip.header">MinExpiresHeader</A> <B>createMinExpiresHeader</B>(int minExpires)
throws <A HREF="../../../javax/sip/InvalidArgum
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -