📄 message.html
字号:
<TD><CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#equals(java.lang.Object)" title="class or interface in java.lang">equals</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#finalize()" title="class or interface in java.lang">finalize</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD></TR></TABLE> <P><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_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>Constructor Detail</B></FONT></TH></TR></TABLE><A NAME="Message()"><!-- --></A><H3>Message</H3><PRE>public <B>Message</B>()</PRE><DL><DD>Constructs a new Message.<P></DL><HR><A NAME="Message(org.dom4j.Element)"><!-- --></A><H3>Message</H3><PRE>public <B>Message</B>(org.dom4j.Element element)</PRE><DL><DD>Constructs a new Message using an existing Element. This is useful for parsing incoming message Elements into Message objects.<P><DL><DT><B>Parameters:</B><DD><CODE>element</CODE> - the message Element.</DL></DL><HR><A NAME="Message(org.dom4j.Element, boolean)"><!-- --></A><H3>Message</H3><PRE>public <B>Message</B>(org.dom4j.Element element, boolean skipValidation)</PRE><DL><DD>Constructs a new Message using an existing Element. This is useful for parsing incoming message Elements into Message objects. Stringprep validation on the TO address can be disabled. The FROM address will not be validated since the server is the one that sets that value.<P><DL><DT><B>Parameters:</B><DD><CODE>element</CODE> - the message Element.<DD><CODE>skipValidation</CODE> - true if stringprep should not be applied to the TO address.</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="getType()"><!-- --></A><H3>getType</H3><PRE>public <A HREF="../../../org/xmpp/packet/Message.Type.html" title="enum in org.xmpp.packet">Message.Type</A> <B>getType</B>()</PRE><DL><DD>Returns the type of this message<P><DD><DL><DT><B>Returns:</B><DD>the message type.<DT><B>See Also:</B><DD><A HREF="../../../org/xmpp/packet/Message.Type.html" title="enum in org.xmpp.packet"><CODE>Message.Type</CODE></A></DL></DD></DL><HR><A NAME="setType(org.xmpp.packet.Message.Type)"><!-- --></A><H3>setType</H3><PRE>public void <B>setType</B>(<A HREF="../../../org/xmpp/packet/Message.Type.html" title="enum in org.xmpp.packet">Message.Type</A> type)</PRE><DL><DD>Sets the type of this message.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>type</CODE> - the message type.<DT><B>See Also:</B><DD><A HREF="../../../org/xmpp/packet/Message.Type.html" title="enum in org.xmpp.packet"><CODE>Message.Type</CODE></A></DL></DD></DL><HR><A NAME="getSubject()"><!-- --></A><H3>getSubject</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>getSubject</B>()</PRE><DL><DD>Returns the subject of this message or <tt>null</tt> if there is no subject..<P><DD><DL><DT><B>Returns:</B><DD>the subject.</DL></DD></DL><HR><A NAME="setSubject(java.lang.String)"><!-- --></A><H3>setSubject</H3><PRE>public void <B>setSubject</B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> subject)</PRE><DL><DD>Sets the subject of this message.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>subject</CODE> - the subject.</DL></DD></DL><HR><A NAME="getBody()"><!-- --></A><H3>getBody</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>getBody</B>()</PRE><DL><DD>Returns the body of this message or <tt>null</tt> if there is no body.<P><DD><DL><DT><B>Returns:</B><DD>the body.</DL></DD></DL><HR><A NAME="setBody(java.lang.String)"><!-- --></A><H3>setBody</H3><PRE>public void <B>setBody</B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> body)</PRE><DL><DD>Sets the body of this message.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>body</CODE> - the body.</DL></DD></DL><HR><A NAME="getThread()"><!-- --></A><H3>getThread</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>getThread</B>()</PRE><DL><DD>Returns the thread value of this message, an identifier that is used for tracking a conversation thread ("instant messaging session") between two entities. If the thread is not set, <tt>null</tt> will be returned.<P><DD><DL><DT><B>Returns:</B><DD>the thread value.</DL></DD></DL><HR><A NAME="setThread(java.lang.String)"><!-- --></A><H3>setThread</H3><PRE>public void <B>setThread</B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> thread)</PRE><DL><DD>Sets the thread value of this message, an identifier that is used for tracking a conversation thread ("instant messaging session") between two entities.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>thread</CODE> - thread value.</DL></DD></DL><HR><A NAME="getChildElement(java.lang.String, java.lang.String)"><!-- --></A><H3>getChildElement</H3><PRE>public org.dom4j.Element <B>getChildElement</B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> name, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> namespace)</PRE><DL><DD>Returns the first child element of this packet that matches the given name and namespace. If no matching element is found, <tt>null</tt> will be returned. This is a convenience method to avoid manipulating this underlying packet's Element instance directly.<p> Child elements in extended namespaces are used to extend the features of XMPP. Examples include a "user is typing" indicator and invitations to group chat rooms. Although any valid XML can be included in a child element in an extended namespace, many common features have been standardized as <a href="http://www.jabber.org/jeps">Jabber Enhancement Proposals</a> (JEPs).<P><DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - the element name.<DD><CODE>namespace</CODE> - the element namespace.<DT><B>Returns:</B><DD>the first matching child element, or <tt>null</tt> if there is no matching child element.</DL></DD></DL><HR><A NAME="addChildElement(java.lang.String, java.lang.String)"><!-- --></A><H3>addChildElement</H3><PRE>public org.dom4j.Element <B>addChildElement</B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> name, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> namespace)</PRE><DL><DD>Adds a new child element to this packet with the given name and namespace. The newly created Element is returned. This is a convenience method to avoid manipulating this underlying packet's Element instance directly.<p> Child elements in extended namespaces are used to extend the features of XMPP. Examples include a "user is typing" indicator and invitations to group chat rooms. Although any valid XML can be included in a child element in an extended namespace, many common features have been standardized as <a href="http://www.jabber.org/jeps">Jabber Enhancement Proposals</a> (JEPs).<P><DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - the element name.<DD><CODE>namespace</CODE> - the element namespace.<DT><B>Returns:</B><DD>the newly created child element.</DL></DD></DL><HR><A NAME="createCopy()"><!-- --></A><H3>createCopy</H3><PRE>public <A HREF="../../../org/xmpp/packet/Message.html" title="class in org.xmpp.packet">Message</A> <B>createCopy</B>()</PRE><DL><DD>Returns a deep copy of this Message.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/xmpp/packet/Packet.html#createCopy()">createCopy</A></CODE> in class <CODE><A HREF="../../../org/xmpp/packet/Packet.html" title="class in org.xmpp.packet">Packet</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>a deep copy of this Message.</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>Openfire 3.6.0a Javadoc</b></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../org/xmpp/packet/JID.html" title="class in org.xmpp.packet"><B>PREV CLASS</B></A> <A HREF="../../../org/xmpp/packet/Message.Type.html" title="enum in org.xmpp.packet"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../index.html?org/xmpp/packet/Message.html" target="_top"><B>FRAMES</B></A> <A HREF="Message.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: <A HREF="#nested_class_summary">NESTED</A> | <A HREF="#fields_inherited_from_class_org.xmpp.packet.Packet">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR><i>Copyright © 2003-2008 Jive Software.</i></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -