• 大小: 3.51MB
    文件类型: .rar
    金币: 2
    下载: 0 次
    发布日期: 2024-01-25
  • 语言: Java
  • 标签:

资源简介

中国移动MM7 API用户手册,代码,示例,java

资源截图

代码片段和文件信息

import com.cmcc.mm7.vasp.service.*;
import com.cmcc.mm7.vasp.message.*;
import com.cmcc.mm7.vasp.conf.*;
import com.cmcc.mm7.vasp.common.*;
import java.net.*;
import java.io.*;
import java.util.*;

public class MyReceiver extends MM7Receiver
{
  //处理到VASP的传送(deliver)多媒体消息
  public MM7VASPRes doDeliver(MM7DeliverReq mm7DeliverReq) {
    MM7DeliverRes res = new MM7DeliverRes();
    int i = 0;
    System.out.println(“transactionid=“ + mm7DeliverReq.getTransactionID());
    
    if(mm7DeliverReq.isToExist())
    {
     List to = mm7DeliverReq.getTo();
     for(i = 0;i < to.size();i ++)
     {
     System.out.println(“to=“+to.get(i));
     }
    }

    if(mm7DeliverReq.isCcExist())
    {
      List cc = mm7DeliverReq.getCc();
     for(i = 0;i < cc.size();i ++)
     {
     System.out.println(“cc=“+cc.get(i));
     }
   }

    if(mm7DeliverReq.isBccExist())
    {
      List bcc = mm7DeliverReq.getBcc();
     for(i = 0;i < bcc.size();i ++)
     {
     System.out.println(“bcc=“+bcc.get(i));
     }
    }
    
    if(mm7DeliverReq.islinkedIDExist())
    {
     System.out.println(“linkedid=“+mm7DeliverReq.getlinkedID());
    }
    
    if(mm7DeliverReq.isMMSRelayServerIDExist())
    {
     System.out.println(“mmsrelayserverid=“+mm7DeliverReq.getMMSRelayServerID());
    }
    
    if(mm7DeliverReq.isPriorityExist())
    {
     System.out.println(“priority=“+mm7DeliverReq.getPriority());
    }
    
    if(mm7DeliverReq.isReplyChargingIDExist())
    {
     System.out.println(“replycharging=“+mm7DeliverReq.getReplyChargingID());
    }
    
    if(mm7DeliverReq.isSenderExist())
    {
     System.out.println(“sender=“+mm7DeliverReq.getSender());
    }
    
    if(mm7DeliverReq.isSubjectExist())
    {
     System.out.println(“subject=“+mm7DeliverReq.getSubject());
    }
    
    if(mm7DeliverReq.isTimeStampExist())
    {
     System.out.println(“timestamp=“+mm7DeliverReq.getTimeStamp());
    }
    
if(mm7DeliverReq.isContentExist())
{
    MMContent parentContent = mm7DeliverReq.getContent();
    if(parentContent.isMultipart())
    {
     System.out.println(“multipart“);
    List contentList = parentContent.getSubContents();
    System.out.println(“i=“+contentList.size());
    for(i = 0;i < contentList.size();i ++)
    {
     MMContent mmContent = (MMContent)contentList.get(i);
     String contentID = mmContent.getContentID();
     contentID = “zxme“ + i;
     MMContentType mmContentType = mmContent.getContentType();
     System.out.println(“contenttype=“+mmContentType.getPrimaryType()+“/“+mmContentType.getSubType());
     if(mmContentType.getSubType().trim().equalsIgnoreCase(“jpeg“))
     contentID = contentID + “.jpg“;
     else if(mmContentType.getSubType().trim().equalsIgnoreCase(“gif“))
     contentID = contentID + “.gif“;
     else if(mmContentType.getSubType().trim().equalsIgnoreCase(“midi“))
     contentID = contentID + 

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件     122934  2006-07-22 12:21  61921647mm7api_2006_V_1_5_7_2\classes\mm7api.jar

     文件        330  2006-06-20 15:44  61921647mm7api_2006_V_1_5_7_2\config\ConnConfig.xml

     文件        685  2006-06-20 15:57  61921647mm7api_2006_V_1_5_7_2\config\mm7Config.xml

     文件       4888  2004-04-12 20:18  61921647mm7api_2006_V_1_5_7_2\doc\allclasses-frame.html

     文件       4478  2004-04-12 20:18  61921647mm7api_2006_V_1_5_7_2\doc\allclasses-noframe.html

     文件      18164  2004-04-12 20:18  61921647mm7api_2006_V_1_5_7_2\doc\com\cmcc\mm7\vasp\common\ConcurrentHashMap.Entry.html

     文件      17757  2004-04-12 20:18  61921647mm7api_2006_V_1_5_7_2\doc\com\cmcc\mm7\vasp\common\ConcurrentHashMap.HashIterator.html

     文件      54919  2004-04-12 20:18  61921647mm7api_2006_V_1_5_7_2\doc\com\cmcc\mm7\vasp\common\ConcurrentHashMap.html

     文件      13166  2004-04-12 20:18  61921647mm7api_2006_V_1_5_7_2\doc\com\cmcc\mm7\vasp\common\ConcurrentHashMap.KeyIterator.html

     文件      11688  2004-04-12 20:18  61921647mm7api_2006_V_1_5_7_2\doc\com\cmcc\mm7\vasp\common\ConcurrentHashMap.Segment.html

     文件      13166  2004-04-12 20:18  61921647mm7api_2006_V_1_5_7_2\doc\com\cmcc\mm7\vasp\common\ConcurrentHashMap.ValueIterator.html

     文件      18325  2004-04-12 20:18  61921647mm7api_2006_V_1_5_7_2\doc\com\cmcc\mm7\vasp\common\ConnectionPool.html

     文件      14777  2004-04-12 20:18  61921647mm7api_2006_V_1_5_7_2\doc\com\cmcc\mm7\vasp\common\ConnectionWrap.html

     文件      12306  2004-04-12 20:18  61921647mm7api_2006_V_1_5_7_2\doc\com\cmcc\mm7\vasp\common\MMConstants.ChargedParty.html

     文件      13701  2004-04-12 20:18  61921647mm7api_2006_V_1_5_7_2\doc\com\cmcc\mm7\vasp\common\MMConstants.Charset.html

     文件      19071  2004-04-12 20:18  61921647mm7api_2006_V_1_5_7_2\doc\com\cmcc\mm7\vasp\common\MMConstants.ContentType.html

     文件      31163  2004-04-12 20:18  61921647mm7api_2006_V_1_5_7_2\doc\com\cmcc\mm7\vasp\common\MMConstants.html

     文件      11849  2004-04-12 20:18  61921647mm7api_2006_V_1_5_7_2\doc\com\cmcc\mm7\vasp\common\MMConstants.MessageClass.html

     文件      17359  2004-04-12 20:18  61921647mm7api_2006_V_1_5_7_2\doc\com\cmcc\mm7\vasp\common\MMConstants.MMStatus.html

     文件      10908  2004-04-12 20:18  61921647mm7api_2006_V_1_5_7_2\doc\com\cmcc\mm7\vasp\common\MMConstants.Priority.html

     文件      13137  2004-04-12 20:18  61921647mm7api_2006_V_1_5_7_2\doc\com\cmcc\mm7\vasp\common\MMConstants.ReadStatus.html

     文件      41284  2004-04-12 20:18  61921647mm7api_2006_V_1_5_7_2\doc\com\cmcc\mm7\vasp\common\MMConstants.RequestStatus.html

     文件      29730  2004-04-12 20:18  61921647mm7api_2006_V_1_5_7_2\doc\com\cmcc\mm7\vasp\common\MMContent.html

     文件      17377  2004-04-12 20:18  61921647mm7api_2006_V_1_5_7_2\doc\com\cmcc\mm7\vasp\common\MMContentType.html

     文件       2291  2004-04-12 20:18  61921647mm7api_2006_V_1_5_7_2\doc\com\cmcc\mm7\vasp\common\package-frame.html

     文件       7826  2004-04-12 20:18  61921647mm7api_2006_V_1_5_7_2\doc\com\cmcc\mm7\vasp\common\package-summary.html

     文件       9542  2004-04-12 20:18  61921647mm7api_2006_V_1_5_7_2\doc\com\cmcc\mm7\vasp\common\package-tree.html

     文件       9787  2004-04-12 20:18  61921647mm7api_2006_V_1_5_7_2\doc\com\cmcc\mm7\vasp\common\SOAPDecodeException.html

     文件      13589  2004-04-12 20:18  61921647mm7api_2006_V_1_5_7_2\doc\com\cmcc\mm7\vasp\common\SOAPDecoder.html

     文件       9787  2004-04-12 20:18  61921647mm7api_2006_V_1_5_7_2\doc\com\cmcc\mm7\vasp\common\SOAPEncodeException.html

............此处省略98个文件信息

评论

共有 条评论

相关资源