📄 offer.html
字号:
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Method Detail</B></FONT></TH></TR></TABLE><A NAME="accept()"><!-- --></A><H3>accept</H3><PRE>public void <B>accept</B>()</PRE><DL><DD>Accepts the offer.<P><DD><DL></DL></DD></DL><HR><A NAME="reject()"><!-- --></A><H3>reject</H3><PRE>public void <B>reject</B>()</PRE><DL><DD>Rejects the offer.<P><DD><DL></DL></DD></DL><HR><A NAME="getUserID()"><!-- --></A><H3>getUserID</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>getUserID</B>()</PRE><DL><DD>Returns the userID that the offer originates from. In most cases, the userID will simply be the JID of the requesting user. However, users can also manually specify a userID for their request. In that case, that value will be returned.<P><DD><DL><DT><B>Returns:</B><DD>the userID of the user from which the offer originates.</DL></DD></DL><HR><A NAME="getUserJID()"><!-- --></A><H3>getUserJID</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>getUserJID</B>()</PRE><DL><DD>Returns the JID of the user that made the offer request.<P><DD><DL><DT><B>Returns:</B><DD>the user's JID.</DL></DD></DL><HR><A NAME="getWorkgroupName()"><!-- --></A><H3>getWorkgroupName</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>getWorkgroupName</B>()</PRE><DL><DD>The fully qualified name of the workgroup (eg support@example.com).<P><DD><DL><DT><B>Returns:</B><DD>the name of the workgroup.</DL></DD></DL><HR><A NAME="getExpiresDate()"><!-- --></A><H3>getExpiresDate</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/util/Date.html" title="class or interface in java.util">Date</A> <B>getExpiresDate</B>()</PRE><DL><DD>The date when the offer will expire. The agent must <A HREF="../../../../../org/jivesoftware/smackx/workgroup/agent/Offer.html#accept()"><CODE>accept()</CODE></A> the offer before the expiration date or the offer will lapse and be routed to another agent. Alternatively, the agent can <A HREF="../../../../../org/jivesoftware/smackx/workgroup/agent/Offer.html#reject()"><CODE>reject()</CODE></A> the offer at any time if they don't wish to accept it..<P><DD><DL><DT><B>Returns:</B><DD>the date at which this offer expires.</DL></DD></DL><HR><A NAME="getSessionID()"><!-- --></A><H3>getSessionID</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>getSessionID</B>()</PRE><DL><DD>The session ID associated with the offer.<P><DD><DL><DT><B>Returns:</B><DD>the session id associated with the offer.</DL></DD></DL><HR><A NAME="getMetaData()"><!-- --></A><H3>getMetaData</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/util/Map.html" title="class or interface in java.util">Map</A> <B>getMetaData</B>()</PRE><DL><DD>The meta-data associated with the offer.<P><DD><DL><DT><B>Returns:</B><DD>the offer meta-data.</DL></DD></DL><HR><A NAME="getContent()"><!-- --></A><H3>getContent</H3><PRE>public <A HREF="../../../../../org/jivesoftware/smackx/workgroup/agent/OfferContent.html" title="class in org.jivesoftware.smackx.workgroup.agent">OfferContent</A> <B>getContent</B>()</PRE><DL><DD>Returns the content of the offer. The content explains the reason for the offer (e.g. user request, transfer)<P><DD><DL><DT><B>Returns:</B><DD>the content of the offer.</DL></DD></DL><HR><A NAME="isAccepted()"><!-- --></A><H3>isAccepted</H3><PRE>public boolean <B>isAccepted</B>()</PRE><DL><DD>Returns true if the agent accepted this offer.<P><DD><DL><DT><B>Returns:</B><DD>true if the agent accepted this offer.</DL></DD></DL><HR><A NAME="isRejected()"><!-- --></A><H3>isRejected</H3><PRE>public boolean <B>isRejected</B>()</PRE><DL><DD>Return true if the agent rejected this offer.<P><DD><DL><DT><B>Returns:</B><DD>true if the agent rejected this offer.</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>Smack</b></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../../org/jivesoftware/smackx/workgroup/agent/InvitationRequest.html" title="class in org.jivesoftware.smackx.workgroup.agent"><B>PREV CLASS</B></A> <A HREF="../../../../../org/jivesoftware/smackx/workgroup/agent/OfferConfirmation.html" title="class in org.jivesoftware.smackx.workgroup.agent"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../../index.html?org/jivesoftware/smackx/workgroup/agent/Offer.html" target="_top"><B>FRAMES</B></A> <A HREF="Offer.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 | FIELD | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: FIELD | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR><i>Copyright © 2003-2007 Jive Software. </i></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -