资源简介
自己用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求两顶点间最短路径和距离
- (java)基于UDP的聊天程序
- Java 课程设计-一个简单的画图程序
- com.cb.eclipse.folding_1.0.6
- java程序员顶岗实习
- 易宝支付Demo(Java源代码)
- JAVA简单异常处理main方法中的args[]命令
- java读取doc、docx、slx、xlsx等word和exc
- jsp+javabean+sqlServer做的一个购物车
- 2016-2017第2学期《Java应用程序开发》期
- java实现的P2P即时聊天程序
- 用java编程将txt文件数据导入oracle
- JAVA利用TCP进行服务器与客户端通讯
- IP地址的合法性及子网判断
- java实现的聊天系统
- mysql-connector-java-5.1.7 jar包
- jsp+servlet+javabean学生信息管理系统
- java使用栈的真值表程序
- 基于java socket的机票预订程序
- AndroidRClassGenerator
- java简单文件管理系统源码
- 编程实现基于UDP的pingjava.
- java 会员管理系统
- Java实验之雷达图源程序
- java实现p2p通信
- 哲学家就餐:Java多线程图形版
- Java实现一个简单的数据库系统
- java-ssm框架项目代码自动化工具1.6.1
- 简单的JAVA 3D球编码
- Java信息科技管理人员面试题中国邮政
评论
共有 条评论