我们正在使用mm7协议处理MMS应用程序。我们可以使用instacom应用程序发送MMS。从以下链接获取示例代码: https://github.com/vnesek/instantcom-mm7/commit/272469a13be7d61899520e981d347d03113652f4 。有没有在java中接收彩信的示例?
答案 0 :(得分:0)
您需要创建一个扩展AbstractMM7Servlet并实现调度方法的servlet
protected MM7Response dispatch(MM7Request req) throws MM7Error {
MM7Response resp = new MM7Response();
if (req instanceof SubmitReq) {
SubmitReq submitReq = (SubmitReq) req;
// do your logic
} else {
throw new MM7Error("method not supported");
}
return resp;
}