资源简介
自己用java实现苹果的apns推送,调用压缩包的text文件里面的方法即可

代码片段和文件信息
/*
* Copyright 2009 Mahmood Ali.
* All rights reserved.
*
* Redistribution and use in source and binary forms with or without
* modification are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice this list of conditions and the following disclaimer.
* * Redistributions in binary form must reproduce the above
* copyright notice this list of conditions and the following disclaimer
* in the documentation and/or other materials provided with the
* distribution.
* * Neither the name of Mahmood Ali. nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* “AS IS“ AND ANY EXPRESS OR IMPLIED WARRANTIES INCLUDING BUT NOT
* LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT INDIRECT INCIDENTAL
* SPECIAL EXEMPLARY OR CONSEQUENTIAL DAMAGES (INCLUDING BUT NOT
* LIMITED TO PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE
* DATA OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
* THEORY OF LIABILITY WHETHER IN CONTRACT STRICT LIABILITY OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package com.notnoop.apns;
/**
* The main class to interact with the APNS Service.
*
* Provides an interface to create the {@link ApnsServiceBuilder} and
* {@code ApnsNotification} payload.
*/
public final class APNS {
private APNS() {
throw new Assertionerror(“Uninstantiable class“);
}
/**
* Returns a new Payload builder
*/
public static PayloadBuilder newPayload() {
return new PayloadBuilder();
}
/**
* Returns a new APNS Service for sending iPhone notifications
*/
public static ApnsServiceBuilder newService() {
return new ApnsServiceBuilder();
}
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
-rw-r--r-- 465 2014-07-01 13:47 APNS推送\Demo.txt
-rw-r--r-- 2228 2014-06-30 14:38 APNS推送\工具库\com\notnoop\apns\APNS.java
-rw-r--r-- 3747 2014-06-30 14:38 APNS推送\工具库\com\notnoop\apns\ApnsDelegate.java
-rw-r--r-- 512 2014-06-18 18:22 APNS推送\工具库\com\notnoop\apns\ApnsDelegateAdapter.java
-rw-r--r-- 2646 2014-06-30 14:38 APNS推送\工具库\com\notnoop\apns\ApnsNotification.java
-rw-r--r-- 7253 2014-06-30 14:38 APNS推送\工具库\com\notnoop\apns\ApnsService.java
-rw-r--r-- 24601 2014-06-30 14:38 APNS推送\工具库\com\notnoop\apns\ApnsServiceBuilder.java
-rw-r--r-- 2813 2014-06-30 14:38 APNS推送\工具库\com\notnoop\apns\DeliveryError.java
-rw-r--r-- 5953 2014-06-30 14:38 APNS推送\工具库\com\notnoop\apns\EnhancedApnsNotification.java
-rw-r--r-- 6295 2014-06-30 14:38 APNS推送\工具库\com\notnoop\apns\internal\AbstractApnsService.java
-rw-r--r-- 2136 2014-06-30 14:38 APNS推送\工具库\com\notnoop\apns\internal\ApnsConnection.java
-rw-r--r-- 17349 2014-06-30 14:38 APNS推送\工具库\com\notnoop\apns\internal\ApnsConnectionImpl.java
-rw-r--r-- 4977 2014-06-30 14:38 APNS推送\工具库\com\notnoop\apns\internal\ApnsFeedbackConnection.java
-rw-r--r-- 2771 2014-06-30 14:38 APNS推送\工具库\com\notnoop\apns\internal\ApnsPooledConnection.java
-rw-r--r-- 2281 2014-06-18 18:22 APNS推送\工具库\com\notnoop\apns\internal\ApnsServiceImpl.java
-rw-r--r-- 3214 2014-06-30 14:38 APNS推送\工具库\com\notnoop\apns\internal\BatchApnsService.java
-rw-r--r-- 4667 2014-06-30 14:38 APNS推送\工具库\com\notnoop\apns\internal\QueuedApnsService.java
-rw-r--r-- 2731 2014-06-30 14:38 APNS推送\工具库\com\notnoop\apns\internal\ReconnectPolicies.java
-rw-r--r-- 12390 2014-06-30 14:38 APNS推送\工具库\com\notnoop\apns\internal\Utilities.java
-rw-r--r-- 15242 2014-06-30 14:38 APNS推送\工具库\com\notnoop\apns\PayloadBuilder.java
-rw-r--r-- 4398 2014-06-30 14:38 APNS推送\工具库\com\notnoop\apns\ReconnectPolicy.java
-rw-r--r-- 645 2014-06-30 14:38 APNS推送\工具库\com\notnoop\exceptions\ApnsDeliveryErrorException.java
-rw-r--r-- 2101 2014-06-30 14:38 APNS推送\工具库\com\notnoop\exceptions\ApnsException.java
-rw-r--r-- 2758 2014-06-30 14:38 APNS推送\工具库\com\notnoop\exceptions\InvalidSSLConfig.java
-rw-r--r-- 2227 2014-06-30 14:38 APNS推送\工具库\com\notnoop\exceptions\NetworkIOException.java
-rw-r--r-- 2318 2014-06-30 14:38 APNS推送\工具库\com\notnoop\exceptions\RuntimeIOException.java
drwxrwxrwx 0 2014-06-30 14:38 APNS推送\工具库\com\notnoop\apns\internal
drwxrwxrwx 0 2014-06-30 14:38 APNS推送\工具库\com\notnoop\apns
drwxrwxrwx 0 2014-06-30 14:38 APNS推送\工具库\com\notnoop\exceptions
drwxrwxrwx 0 2014-06-18 18:22 APNS推送\工具库\com\notnoop
............此处省略7个文件信息
- 上一篇:JSP中英文参考文献(毕业论文用)
- 下一篇:Java求两顶点间最短路径和距离
相关资源
- 微博系统(Java源码,servlet+jsp),适
- java串口通信全套完整代码-导入eclip
- jsonarray所必需的6个jar包.rar
- 三角网构TIN生成算法,Java语言实现
- java代码编写将excel数据导入到mysql数据
- Java写的cmm词法分析器源代码及javacc学
- JAVA JSP公司财务管理系统 源代码 论文
- JSP+MYSQL旅行社管理信息系统
- 推荐算法的JAVA实现
- 基于Java的酒店管理系统源码(毕业设
- java-图片识别 图片比较
- android毕业设计
- java23种设计模式+23个实例demo
- java Socket发送/接受报文
- JAVA828436
- java界面美化 提供多套皮肤直接使用
- 在线聊天系统(java代码)
- 基于Java的图书管理系统807185
- java中实现将页面数据导入Excel中
- java 企业销售管理系统
- java做的聊天系统(包括正规课程设计
- Java编写的qq聊天室
- 商店商品管理系统 JAVA写的 有界面
- JAVA开发聊天室程序
- 在linux系统下用java执行系统命令实例
- java期末考试试题两套(答案) 选择(
- JAVA3D编程示例(建模、交互)
- Java 文件加密传输
- java做的房产管理系统
- 基于jsp的bbs论坛 非常详细
评论
共有 条评论