Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

initial load of library skeleton

  • Loading branch information...
commit 0f86474aedfca97df4fe3626d5364a25a6381aa0 0 parents
Mahmood Ali notnoop authored
Showing with 303 additions and 0 deletions.
  1. +14 −0 .gitignore
  2. +4 −0 CHANGELOG
  3. +28 −0 LICENSE
  4. +45 −0 README.markdown
  5. +212 −0 pom.xml
14 .gitignore
@@ -0,0 +1,14 @@
+.DS_Store
+.#*
+*.sw?
+bin
+
+target
+release.properties
+
+*~
+
+.project
+.classpath
+.settings
+tags
4 CHANGELOG
@@ -0,0 +1,4 @@
+Changelog of java-mpns
+
+Version 0.0.1
+ First alpha release
28 LICENSE
@@ -0,0 +1,28 @@
+ Copyright 2011, 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.
45 README.markdown
@@ -0,0 +1,45 @@
+java-mpns is a Java client for Microsoft Push Notification service (MPNs).
+The library aims to provide a highly scalable interface to the Apple
+server, while still being simple and modular.
+
+The interface aims to require very minimal code to achieve the most common
+cases, but have it be reconfigurable so you can even use your own networking
+connections or XML library if necessary.
+
+Links: [Installation](http://wiki.github.com/notnoop/java-mpns/installation)
+- [Javadocs](http://notnoop.github.com/java-mpns/apidocs/index.html)
+- [Changelog](https://github.com/notnoop/java-mpns/blob/master/CHANGELOG)
+
+Features:
+--------------
+ * Easy to use, high performance MPNS Service API
+ * Easy to extend and reuse
+ * Easy to integrate with dependency injection frameworks
+ * Easy to setup custom notification payloads
+ * Supports connection pooling
+
+
+Sample Code
+----------------
+
+To send a notification, you can do it in two steps:
+
+1. Setup the connection
+
+ MpnsService service =
+ MPNS.newService()
+ .build();
+
+2. Create and send the message
+
+ MpnsMessage notification = MPNS.newMessage()
+ .tile().count(2).title("Tile message")
+ .build();
+ String subscriptionUri = "https://..../"
+ service.push(subscriptionUri, notification);
+
+That's it!
+
+Contact
+---------------
+Support mailing list: http://groups.google.com/group/java-apns-discuss
212 pom.xml
@@ -0,0 +1,212 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>com.notnoop.mpns</groupId>
+ <artifactId>mpns</artifactId>
+ <name>Java Microsoft Push Notification Service Library</name>
+ <version>0.0.1-SNAPSHOT</version>
+ <description>Library to send Microsoft Push Notification</description>
+
+ <!-- Inherit the Sonatype OSS deployment configuration -->
+ <!--
+ <parent>
+ <groupId>org.sonatype.oss</groupId>
+ <artifactId>oss-parent</artifactId>
+ <version>5</version>
+ </parent>
+ -->
+
+ <scm>
+ <connection>scm:git:git://github.com/notnoop/java-mpns.git</connection>
+ <developerConnection>scm:git:git@github.com:notnoop/java-mpns.git</developerConnection>
+ <url>http://github.com/notnoop/java-mpns</url>
+ </scm>
+
+ <properties>
+ <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+ </properties>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <version>2.3.2</version>
+ <configuration>
+ <source>1.5</source>
+ <target>1.5</target>
+ </configuration>
+ </plugin>
+ <plugin>
+ <artifactId>maven-assembly-plugin</artifactId>
+ <configuration>
+ <descriptorRefs>
+ <descriptorRef>jar-with-dependencies</descriptorRef>
+ </descriptorRefs>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-site-plugin</artifactId>
+ <version>3.0-beta-3</version>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-release-plugin</artifactId>
+ <version>2.1</version>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-jar-plugin</artifactId>
+ <version>2.3.1</version>
+ <executions>
+ <execution>
+ <goals>
+ <goal>test-jar</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <artifactId>maven-javadoc-plugin</artifactId>
+ <version>2.7</version>
+ <executions>
+ <execution>
+ <goals>
+ <goal>jar</goal>
+ <goal>javadoc</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+
+ <plugin>
+ <artifactId>maven-source-plugin</artifactId>
+ <version>2.1.2</version>
+ <executions>
+ <execution>
+ <id>bind-sources</id>
+ <goals>
+ <goal>jar</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <artifactId>maven-eclipse-plugin</artifactId>
+ <version>2.8</version>
+ <configuration>
+ <downloadSources>true</downloadSources>
+ <downloadJavadocs>true</downloadJavadocs>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+
+ <!--
+ <distributionManagement>
+ <site>
+ <id>gh-pages</id>
+ <url>file:${project.basedir}/site</url>
+ </site>
+ <repository>
+ <id>notnoop-m2-repository</id>
+ <url>file:${project.basedir}/target/deploy/repo</url>
+ </repository>
+ </distributionManagement>
+ -->
+
+ <dependencies>
+ <dependency>
+ <groupId>ch.qos.logback</groupId>
+ <artifactId>logback-classic</artifactId>
+ <version>0.9.24</version>
+ <scope>test</scope>
+ </dependency>
+
+ <dependency>
+ <groupId>org.slf4j</groupId>
+ <artifactId>slf4j-api</artifactId>
+ <version>1.6.1</version>
+ </dependency>
+
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <version>4.7</version>
+ <type>jar</type>
+ <scope>test</scope>
+ </dependency>
+
+ <dependency>
+ <groupId>org.mockito</groupId>
+ <artifactId>mockito-all</artifactId>
+ <version>1.8.1</version>
+ <type>jar</type>
+ <scope>test</scope>
+ </dependency>
+ </dependencies>
+
+ <!-- Site Generation -->
+ <url>http://notnoop.github.com/java-mpns</url>
+ <description>
+ Library to send Microsoft Push Notification.
+ </description>
+
+ <licenses>
+ <license>
+ <name>New BSD License</name>
+ <url>http://www.opensource.org/licenses/bsd-license.php</url>
+ <distribution>repo</distribution>
+ </license>
+ </licenses>
+
+ <reporting>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-javadoc-plugin</artifactId>
+ <version>2.7</version>
+ <configuration>
+ <excludePackageNames>com.notnoop.mpns.internal</excludePackageNames>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-jxr-plugin</artifactId>
+ <version>2.2</version>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <version>2.7.1</version>
+ </plugin>
+ <plugin>
+ <groupId>com.atlassian.maven.plugins</groupId>
+ <artifactId>maven-clover2-plugin</artifactId>
+ <version>2.3.1</version>
+ </plugin>
+
+ <!--
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>findbugs-maven-plugin</artifactId>
+ <version>2.0.1</version>
+ </plugin>
+ -->
+
+ </plugins>
+ </reporting>
+
+ <issueManagement>
+ <system>Github</system>
+ <url>http://github.com/notnoop/java-mpns/issues</url>
+ </issueManagement>
+
+ <developers>
+ <developer>
+ <id>notnoop</id>
+ <name>Mahmood Ali</name>
+ </developer>
+ </developers>
+
+</project>
Please sign in to comment.
Something went wrong with that request. Please try again.