cmessage.html

来自「gsm modem 发送短信 闪信 WAP PUSH开发包」· HTML 代码 · 共 1,807 行 · 第 1/4 页

HTML
1,807
字号
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="getMpMemIndex()"><!-- --></A><H3>
getMpMemIndex</H3>
<PRE>
public java.lang.String <B>getMpMemIndex</B>()</PRE>
<DL>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="getValidityPeriod()"><!-- --></A><H3>
getValidityPeriod</H3>
<PRE>
public int <B>getValidityPeriod</B>()</PRE>
<DL>
<DD>Returns the validity period (hours).
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>

<DT><B>Returns:</B><DD>The validity period (hours).</DL>
</DD>
</DL>
<HR>

<A NAME="getStatusReport()"><!-- --></A><H3>
getStatusReport</H3>
<PRE>
public boolean <B>getStatusReport</B>()</PRE>
<DL>
<DD>Returns true if a status report is requested.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>

<DT><B>Returns:</B><DD>True if a status report is requested.</DL>
</DD>
</DL>
<HR>

<A NAME="getFlashSms()"><!-- --></A><H3>
getFlashSms</H3>
<PRE>
public boolean <B>getFlashSms</B>()</PRE>
<DL>
<DD>Returns true if this is a flash message.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>

<DT><B>Returns:</B><DD>True if this is a flash message.</DL>
</DD>
</DL>
<HR>

<A NAME="getSourcePort()"><!-- --></A><H3>
getSourcePort</H3>
<PRE>
public int <B>getSourcePort</B>()</PRE>
<DL>
<DD>Returns the source port. -1 means no port.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>

<DT><B>Returns:</B><DD>The source port.</DL>
</DD>
</DL>
<HR>

<A NAME="getDestinationPort()"><!-- --></A><H3>
getDestinationPort</H3>
<PRE>
public int <B>getDestinationPort</B>()</PRE>
<DL>
<DD>Returns the destination port. -1 means no port.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>

<DT><B>Returns:</B><DD>The destination port.</DL>
</DD>
</DL>
<HR>

<A NAME="setId(java.lang.String)"><!-- --></A><H3>
setId</H3>
<PRE>
public void <B>setId</B>(java.lang.String&nbsp;id)</PRE>
<DL>
<DD>Set the id of the message.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>id</CODE> - the id of the message.</DL>
</DD>
</DL>
<HR>

<A NAME="setRefNo(int)"><!-- --></A><H3>
setRefNo</H3>
<PRE>
public void <B>setRefNo</B>(int&nbsp;refNo)</PRE>
<DL>
<DD>Set the Reference Number of the message.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>refNo</CODE> - the id of the message.</DL>
</DD>
</DL>
<HR>

<A NAME="setText(java.lang.String)"><!-- --></A><H3>
setText</H3>
<PRE>
public void <B>setText</B>(java.lang.String&nbsp;text)</PRE>
<DL>
<DD>Set the text of the message.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>text</CODE> - the text of the message.</DL>
</DD>
</DL>
<HR>

<A NAME="addText(java.lang.String)"><!-- --></A><H3>
addText</H3>
<PRE>
public void <B>addText</B>(java.lang.String&nbsp;text)</PRE>
<DL>
<DD>Adds (concatenates) to the text of the message.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>text</CODE> - the text to be added.</DL>
</DD>
</DL>
<HR>

<A NAME="setDate(java.util.Date)"><!-- --></A><H3>
setDate</H3>
<PRE>
public void <B>setDate</B>(java.util.Date&nbsp;date)</PRE>
<DL>
<DD>Set the date of the message.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>date</CODE> - the date of the message.</DL>
</DD>
</DL>
<HR>

<A NAME="setDispatchDate(java.util.Date)"><!-- --></A><H3>
setDispatchDate</H3>
<PRE>
protected void <B>setDispatchDate</B>(java.util.Date&nbsp;date)</PRE>
<DL>
<DD>Sets the dispatch date of the message.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>date</CODE> - the dispatch date of the message.</DL>
</DD>
</DL>
<HR>

<A NAME="setRecipient(java.lang.String)"><!-- --></A><H3>
setRecipient</H3>
<PRE>
public void <B>setRecipient</B>(java.lang.String&nbsp;recipient)</PRE>
<DL>
<DD>Set the phone number of the recipient. Applicable to outgoing messages.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>recipient</CODE> - the recipient's phone number (international format).</DL>
</DD>
</DL>
<HR>

<A NAME="setMessageEncoding(int)"><!-- --></A><H3>
setMessageEncoding</H3>
<PRE>
public void <B>setMessageEncoding</B>(int&nbsp;messageEncoding)</PRE>
<DL>
<DD>Set the message encoding. Should be one of the constants                MESSAGE_ENCODING_7BIT, MESSAGE_ENCODING_8BIT, MESSAGE_ENCODING_UNICODE.                This is meaningful only when working in PDU mode - default is 7bit.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>messageEncoding</CODE> - one of the message encoding contants.</DL>
</DD>
</DL>
<HR>

<A NAME="setMpRefNo(int)"><!-- --></A><H3>
setMpRefNo</H3>
<PRE>
protected void <B>setMpRefNo</B>(int&nbsp;mpRefNo)</PRE>
<DL>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="setMpSeqNo(int)"><!-- --></A><H3>
setMpSeqNo</H3>
<PRE>
protected void <B>setMpSeqNo</B>(int&nbsp;mpSeqNo)</PRE>
<DL>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="setMemIndex(int)"><!-- --></A><H3>
setMemIndex</H3>
<PRE>
protected void <B>setMemIndex</B>(int&nbsp;memIndex)</PRE>
<DL>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="setMpMemIndex(int)"><!-- --></A><H3>
setMpMemIndex</H3>
<PRE>
protected void <B>setMpMemIndex</B>(int&nbsp;memIndex)</PRE>
<DL>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="setValidityPeriod(int)"><!-- --></A><H3>
setValidityPeriod</H3>
<PRE>
public void <B>setValidityPeriod</B>(int&nbsp;hours)</PRE>
<DL>
<DD>Sets the validity period.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>hours</CODE> - The hours of validity period. Validity is expressed in relative format, i.e. starts counting                        from the time the SMSC receives the message. A value of -1 will set the maximum validity period.</DL>
</DD>
</DL>
<HR>

<A NAME="setStatusReport(boolean)"><!-- --></A><H3>
setStatusReport</H3>
<PRE>
public void <B>setStatusReport</B>(boolean&nbsp;statusReport)</PRE>
<DL>
<DD>Sets if a status report is requested.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>statusReport</CODE> - True if a status report is requested. Default is false (no status report).</DL>
</DD>
</DL>
<HR>

<A NAME="setFlashSms(boolean)"><!-- --></A><H3>
setFlashSms</H3>
<PRE>
public void <B>setFlashSms</B>(boolean&nbsp;flashSms)</PRE>
<DL>
<DD>Sets the message to be delivered as a flash message.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>flashSms</CODE> - True if the message should be delivered as a flash SMS message.</DL>
</DD>
</DL>
<HR>

<A NAME="setSourcePort(int)"><!-- --></A><H3>
setSourcePort</H3>
<PRE>
public void <B>setSourcePort</B>(int&nbsp;port)</PRE>
<DL>
<DD>Sets the source port. Set to -1 for no  port.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>port</CODE> - The source port (16bit addressing).</DL>
</DD>
</DL>
<HR>

<A NAME="setDestinationPort(int)"><!-- --></A><H3>
setDestinationPort</H3>
<PRE>
public void <B>setDestinationPort</B>(int&nbsp;port)</PRE>
<DL>
<DD>Sets the destination port. Set to -1 for no port.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>port</CODE> - The destination port (16bit addressing).</DL>
</DD>
</DL>
<HR>

<A NAME="toString()"><!-- --></A><H3>
toString</H3>
<PRE>
public java.lang.String <B>toString</B>()</PRE>
<DL>
<DD><DL>
<DT><B>Overrides:</B><DD><CODE>toString</CODE> in class <CODE>java.lang.Object</CODE></DL>
</DD>
<DD><DL>
</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>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../org/jsmsengine/package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  </TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
<strong>jSMSEngine API v2.0.9</strong><br><strong>Web:</strong><a href=http://www.jsmsengine.org>http://www.jsmsengine.org</a></strong></EM>
</TD>
</TR>

<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../org/jsmsengine/CIncomingMessage.html" title="class in org.jsmsengine"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../org/jsmsengine/COutgoingMessage.html" title="class in org.jsmsengine"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  <A HREF="../../index.html?org/jsmsengine/CMessage.html" target="_top"><B>FRAMES</B></A>  &nbsp;
&nbsp;<A HREF="CMessage.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
&nbsp;<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:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_bottom"></A>
<!-- ======== END OF BOTTOM NAVBAR ======= -->

<HR>

</BODY>
</HTML>

⌨️ 快捷键说明

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