📄 request.html
字号:
PRACK is an extension method that plays the same role as ACK, but for provisional responses.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/sip/message/Request.html#PUBLISH">PUBLISH</A></B></CODE>
<BR>
PUBLISH is an extension method that allows a client to publish event state (such as presence information).</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/sip/message/Request.html#REFER">REFER</A></B></CODE>
<BR>
Refer is an extension method that requests that the recipient REFER to a resource provided in the request, this can be used to enable many applications such as Call Transfer.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/sip/message/Request.html#REGISTER">REGISTER</A></B></CODE>
<BR>
The REGISTER method requests the addition, removal, and query of bindings.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/sip/message/Request.html#SUBSCRIBE">SUBSCRIBE</A></B></CODE>
<BR>
Subscribe is an extension method that is used to request current state and state updates from a remote node.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/sip/message/Request.html#UPDATE">UPDATE</A></B></CODE>
<BR>
UPDATE is an extension method that allows a client to update parameters of a session (such as the set of media streams and their codecs) but has no impact on the state of a dialog.</TD>
</TR>
</TABLE>
<!-- ========== METHOD SUMMARY =========== -->
<A NAME="method_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Method Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/sip/message/Request.html#getMethod()">getMethod</A></B>()</CODE>
<BR>
Gets method string of this Request message.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../javax/sip/address/URI.html" title="interface in javax.sip.address">URI</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/sip/message/Request.html#getRequestURI()">getRequestURI</A></B>()</CODE>
<BR>
Gets the URI Object identifying the request URI of this Request, which indicates the user or service to which this request is addressed.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/sip/message/Request.html#setMethod(java.lang.String)">setMethod</A></B>(java.lang.String method)</CODE>
<BR>
Sets the method of Request to the newly supplied value.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/sip/message/Request.html#setRequestURI(javax.sip.address.URI)">setRequestURI</A></B>(<A HREF="../../../javax/sip/address/URI.html" title="interface in javax.sip.address">URI</A> requestURI)</CODE>
<BR>
Sets the RequestURI of Request.</TD>
</TR>
</TABLE>
<A NAME="methods_inherited_from_class_javax.sip.message.Message"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from interface javax.sip.message.<A HREF="../../../javax/sip/message/Message.html" title="interface in javax.sip.message">Message</A></B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="../../../javax/sip/message/Message.html#addFirst(javax.sip.header.Header)">addFirst</A>, <A HREF="../../../javax/sip/message/Message.html#addHeader(javax.sip.header.Header)">addHeader</A>, <A HREF="../../../javax/sip/message/Message.html#addLast(javax.sip.header.Header)">addLast</A>, <A HREF="../../../javax/sip/message/Message.html#clone()">clone</A>, <A HREF="../../../javax/sip/message/Message.html#equals(java.lang.Object)">equals</A>, <A HREF="../../../javax/sip/message/Message.html#getContent()">getContent</A>, <A HREF="../../../javax/sip/message/Message.html#getContentDisposition()">getContentDisposition</A>, <A HREF="../../../javax/sip/message/Message.html#getContentEncoding()">getContentEncoding</A>, <A HREF="../../../javax/sip/message/Message.html#getContentLanguage()">getContentLanguage</A>, <A HREF="../../../javax/sip/message/Message.html#getContentLength()">getContentLength</A>, <A HREF="../../../javax/sip/message/Message.html#getExpires()">getExpires</A>, <A HREF="../../../javax/sip/message/Message.html#getHeader(java.lang.String)">getHeader</A>, <A HREF="../../../javax/sip/message/Message.html#getHeaderNames()">getHeaderNames</A>, <A HREF="../../../javax/sip/message/Message.html#getHeaders(java.lang.String)">getHeaders</A>, <A HREF="../../../javax/sip/message/Message.html#getRawContent()">getRawContent</A>, <A HREF="../../../javax/sip/message/Message.html#getSIPVersion()">getSIPVersion</A>, <A HREF="../../../javax/sip/message/Message.html#getUnrecognizedHeaders()">getUnrecognizedHeaders</A>, <A HREF="../../../javax/sip/message/Message.html#hashCode()">hashCode</A>, <A HREF="../../../javax/sip/message/Message.html#removeContent()">removeContent</A>, <A HREF="../../../javax/sip/message/Message.html#removeFirst(java.lang.String)">removeFirst</A>, <A HREF="../../../javax/sip/message/Message.html#removeHeader(java.lang.String)">removeHeader</A>, <A HREF="../../../javax/sip/message/Message.html#removeLast(java.lang.String)">removeLast</A>, <A HREF="../../../javax/sip/message/Message.html#setContent(java.lang.Object, javax.sip.header.ContentTypeHeader)">setContent</A>, <A HREF="../../../javax/sip/message/Message.html#setContentDisposition(javax.sip.header.ContentDispositionHeader)">setContentDisposition</A>, <A HREF="../../../javax/sip/message/Message.html#setContentEncoding(javax.sip.header.ContentEncodingHeader)">setContentEncoding</A>, <A HREF="../../../javax/sip/message/Message.html#setContentLanguage(javax.sip.header.ContentLanguageHeader)">setContentLanguage</A>, <A HREF="../../../javax/sip/message/Message.html#setContentLength(javax.sip.header.ContentLengthHeader)">setContentLength</A>, <A HREF="../../../javax/sip/message/Message.html#setExpires(javax.sip.header.ExpiresHeader)">setExpires</A>, <A HREF="../../../javax/sip/message/Message.html#setHeader(javax.sip.header.Header)">setHeader</A>, <A HREF="../../../javax/sip/message/Message.html#setSIPVersion(java.lang.String)">setSIPVersion</A>, <A HREF="../../../javax/sip/message/Message.html#toString()">toString</A></CODE></TD>
</TR>
</TABLE>
<P>
<!-- ============ FIELD DETAIL =========== -->
<A NAME="field_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>Field Detail</B></FONT></TH>
</TR>
</TABLE>
<A NAME="ACK"><!-- --></A><H3>
ACK</H3>
<PRE>
static final java.lang.String <B>ACK</B></PRE>
<DL>
<DD>An ACK is used to acknowledge the successful receipt of a message in a transaction. It is also used to illustrate the successful setup of a dialog via the a three-way handshake between an UAC and an UAS for an Invite transaction.
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#javax.sip.message.Request.ACK">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="BYE"><!-- --></A><H3>
BYE</H3>
<PRE>
static final java.lang.String <B>BYE</B></PRE>
<DL>
<DD>The BYE request is used to terminate a specific session or attempted session. When a BYE is received on a dialog, any session associated with that dialog SHOULD terminate. A User Agent MUST NOT send a BYE outside of a dialog. The caller's User Agent MAY send a BYE for either confirmed or early dialogs, and the callee's User Agent MAY send a BYE on confirmed dialogs, but MUST NOT send a BYE on early dialogs. However, the callee's User Agent MUST NOT send a BYE on a confirmed dialog until it has received an ACK for its 2xx response or until the server transaction times out. If no SIP extensions have defined other application layer states associated with the dialog, the BYE also terminates the dialog.
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#javax.sip.message.Request.BYE">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="CANCEL"><!-- --></A><H3>
CANCEL</H3>
<PRE>
static final java.lang.String <B>CANCEL</B></PRE>
<DL>
<DD>The CANCEL request is used to cancel a previous request sent by a client. Specifically, it asks the UAS to cease processing the request and to generate an error response to that request. CANCEL has no effect on a request to which a UAS has already given a final response. Because of this, it is most useful to CANCEL requests to which it can take a server long time to respond. For this reason, CANCEL is best for INVITE requests, which can take a long time to generate a response.
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#javax.sip.message.Request.CANCEL">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="INVITE"><!-- --></A><H3>
INVITE</H3>
<PRE>
static final java.lang.String <B>INVITE</B></PRE>
<DL>
<DD>The INVITE method is used by an user agent client that desires to initiate a session, session examples include, audio, video, or a game. The INVITE request asks a server to establish a session. This request may be forwarded by proxies, eventually arriving at one or more UAS's that can potentially accept the invitation. These UAS's will frequently need to query the user about whether to accept the invitation. After some time, those UAS's can accept the invitation (meaning the session is to be established) by sending a 2xx response. If the invitation is not accepted, a 3xx, 4xx, 5xx or 6xx response is sent, depending on the reason for the rejection. Before sending a final response, the UAS can also send provisional responses (1xx) to advise the UAC of progress in contacting the called user.
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#javax.sip.message.Request.INVITE">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="OPTIONS"><!-- --></A><H3>
OPTIONS</H3>
<PRE>
static final java.lang.String <B>OPTIONS</B></PRE>
<DL>
<DD>The OPTIONS method allows a User Agent to query another User Agent or a proxy server as to its capabilities. This allows a client to discover information about the supported methods, content types, extensions, codecs, etc. without "ringing" the other party. For example, before a client inserts a Require header field into an INVITE listing an option that it is not certain the destination UAS supports, the client can query the destination UAS with an OPTIONS to see if this option is returned in a Supported header field. All User Agents MUST support the OPTIONS method.
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#javax.sip.message.Request.OPTIONS">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="REGISTER"><!-- --></A><H3>
REGISTER</H3>
<PRE>
static final java.lang.String <B>REGISTER</B></PRE>
<DL>
<DD>The REGISTER method requests the addition, removal, and query of bindings. A REGISTER request can add a new binding between an address-of-record and one or more contact addresses. Registration on behalf of a particular address-of-record can be performed by a suitably authorized third party. A client can also remove previous bindings or query to determine which bindings are currently in place for an address-of-record. A REGISTER request does not establish a dialog. Registration entails sending a REGISTER request to a special type of UAS known as a registrar. A registrar acts as the front end to the location service for a domain, reading and writing mappings based on the contents of REGISTER requests. This location service is then typically consulted by a proxy server that is responsible for routing requests for that domain.
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#javax.sip.message.Request.REGISTER">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="NOTIFY"><!-- --></A><H3>
NOTIFY</H3>
<PRE>
static final java.lang.String <B>NOTIFY</B></PRE>
<DL>
<DD>Notify is an extension method that informs subscribers of changes in state to which the subscriber has a subscription. Subscriptions are typically put in place using the SUBSCRIBE method; however, it is possible that
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -