Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

initial load of library skeleton

  • Loading branch information...
commit 0f86474aedfca97df4fe3626d5364a25a6381aa0 0 parents
Mahmood Ali notnoop authored
14 .gitignore
... ... @@ -0,0 +1,14 @@
  1 +.DS_Store
  2 +.#*
  3 +*.sw?
  4 +bin
  5 +
  6 +target
  7 +release.properties
  8 +
  9 +*~
  10 +
  11 +.project
  12 +.classpath
  13 +.settings
  14 +tags
4 CHANGELOG
... ... @@ -0,0 +1,4 @@
  1 +Changelog of java-mpns
  2 +
  3 +Version 0.0.1
  4 + First alpha release
28 LICENSE
... ... @@ -0,0 +1,28 @@
  1 + Copyright 2011, Mahmood Ali.
  2 + All rights reserved.
  3 +
  4 + Redistribution and use in source and binary forms, with or without
  5 + modification, are permitted provided that the following conditions are
  6 + met:
  7 +
  8 + * Redistributions of source code must retain the above copyright
  9 + notice, this list of conditions and the following disclaimer.
  10 + * Redistributions in binary form must reproduce the above
  11 + copyright notice, this list of conditions and the following disclaimer
  12 + in the documentation and/or other materials provided with the
  13 + distribution.
  14 + * Neither the name of Mahmood Ali. nor the names of its
  15 + contributors may be used to endorse or promote products derived from
  16 + this software without specific prior written permission.
  17 +
  18 + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  19 + "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  20 + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  21 + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  22 + OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  23 + SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  24 + LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  25 + DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  26 + THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  27 + (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  28 + OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
45 README.markdown
Source Rendered
... ... @@ -0,0 +1,45 @@
  1 +java-mpns is a Java client for Microsoft Push Notification service (MPNs).
  2 +The library aims to provide a highly scalable interface to the Apple
  3 +server, while still being simple and modular.
  4 +
  5 +The interface aims to require very minimal code to achieve the most common
  6 +cases, but have it be reconfigurable so you can even use your own networking
  7 +connections or XML library if necessary.
  8 +
  9 +Links: [Installation](http://wiki.github.com/notnoop/java-mpns/installation)
  10 +- [Javadocs](http://notnoop.github.com/java-mpns/apidocs/index.html)
  11 +- [Changelog](https://github.com/notnoop/java-mpns/blob/master/CHANGELOG)
  12 +
  13 +Features:
  14 +--------------
  15 + * Easy to use, high performance MPNS Service API
  16 + * Easy to extend and reuse
  17 + * Easy to integrate with dependency injection frameworks
  18 + * Easy to setup custom notification payloads
  19 + * Supports connection pooling
  20 +
  21 +
  22 +Sample Code
  23 +----------------
  24 +
  25 +To send a notification, you can do it in two steps:
  26 +
  27 +1. Setup the connection
  28 +
  29 + MpnsService service =
  30 + MPNS.newService()
  31 + .build();
  32 +
  33 +2. Create and send the message
  34 +
  35 + MpnsMessage notification = MPNS.newMessage()
  36 + .tile().count(2).title("Tile message")
  37 + .build();
  38 + String subscriptionUri = "https://..../"
  39 + service.push(subscriptionUri, notification);
  40 +
  41 +That's it!
  42 +
  43 +Contact
  44 +---------------
  45 +Support mailing list: http://groups.google.com/group/java-apns-discuss
212 pom.xml
... ... @@ -0,0 +1,212 @@
  1 +<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">
  2 + <modelVersion>4.0.0</modelVersion>
  3 + <groupId>com.notnoop.mpns</groupId>
  4 + <artifactId>mpns</artifactId>
  5 + <name>Java Microsoft Push Notification Service Library</name>
  6 + <version>0.0.1-SNAPSHOT</version>
  7 + <description>Library to send Microsoft Push Notification</description>
  8 +
  9 + <!-- Inherit the Sonatype OSS deployment configuration -->
  10 + <!--
  11 + <parent>
  12 + <groupId>org.sonatype.oss</groupId>
  13 + <artifactId>oss-parent</artifactId>
  14 + <version>5</version>
  15 + </parent>
  16 + -->
  17 +
  18 + <scm>
  19 + <connection>scm:git:git://github.com/notnoop/java-mpns.git</connection>
  20 + <developerConnection>scm:git:git@github.com:notnoop/java-mpns.git</developerConnection>
  21 + <url>http://github.com/notnoop/java-mpns</url>
  22 + </scm>
  23 +
  24 + <properties>
  25 + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  26 + </properties>
  27 +
  28 + <build>
  29 + <plugins>
  30 + <plugin>
  31 + <groupId>org.apache.maven.plugins</groupId>
  32 + <artifactId>maven-compiler-plugin</artifactId>
  33 + <version>2.3.2</version>
  34 + <configuration>
  35 + <source>1.5</source>
  36 + <target>1.5</target>
  37 + </configuration>
  38 + </plugin>
  39 + <plugin>
  40 + <artifactId>maven-assembly-plugin</artifactId>
  41 + <configuration>
  42 + <descriptorRefs>
  43 + <descriptorRef>jar-with-dependencies</descriptorRef>
  44 + </descriptorRefs>
  45 + </configuration>
  46 + </plugin>
  47 + <plugin>
  48 + <groupId>org.apache.maven.plugins</groupId>
  49 + <artifactId>maven-site-plugin</artifactId>
  50 + <version>3.0-beta-3</version>
  51 + </plugin>
  52 + <plugin>
  53 + <groupId>org.apache.maven.plugins</groupId>
  54 + <artifactId>maven-release-plugin</artifactId>
  55 + <version>2.1</version>
  56 + </plugin>
  57 + <plugin>
  58 + <groupId>org.apache.maven.plugins</groupId>
  59 + <artifactId>maven-jar-plugin</artifactId>
  60 + <version>2.3.1</version>
  61 + <executions>
  62 + <execution>
  63 + <goals>
  64 + <goal>test-jar</goal>
  65 + </goals>
  66 + </execution>
  67 + </executions>
  68 + </plugin>
  69 + <plugin>
  70 + <artifactId>maven-javadoc-plugin</artifactId>
  71 + <version>2.7</version>
  72 + <executions>
  73 + <execution>
  74 + <goals>
  75 + <goal>jar</goal>
  76 + <goal>javadoc</goal>
  77 + </goals>
  78 + </execution>
  79 + </executions>
  80 + </plugin>
  81 +
  82 + <plugin>
  83 + <artifactId>maven-source-plugin</artifactId>
  84 + <version>2.1.2</version>
  85 + <executions>
  86 + <execution>
  87 + <id>bind-sources</id>
  88 + <goals>
  89 + <goal>jar</goal>
  90 + </goals>
  91 + </execution>
  92 + </executions>
  93 + </plugin>
  94 + <plugin>
  95 + <artifactId>maven-eclipse-plugin</artifactId>
  96 + <version>2.8</version>
  97 + <configuration>
  98 + <downloadSources>true</downloadSources>
  99 + <downloadJavadocs>true</downloadJavadocs>
  100 + </configuration>
  101 + </plugin>
  102 + </plugins>
  103 + </build>
  104 +
  105 + <!--
  106 + <distributionManagement>
  107 + <site>
  108 + <id>gh-pages</id>
  109 + <url>file:${project.basedir}/site</url>
  110 + </site>
  111 + <repository>
  112 + <id>notnoop-m2-repository</id>
  113 + <url>file:${project.basedir}/target/deploy/repo</url>
  114 + </repository>
  115 + </distributionManagement>
  116 + -->
  117 +
  118 + <dependencies>
  119 + <dependency>
  120 + <groupId>ch.qos.logback</groupId>
  121 + <artifactId>logback-classic</artifactId>
  122 + <version>0.9.24</version>
  123 + <scope>test</scope>
  124 + </dependency>
  125 +
  126 + <dependency>
  127 + <groupId>org.slf4j</groupId>
  128 + <artifactId>slf4j-api</artifactId>
  129 + <version>1.6.1</version>
  130 + </dependency>
  131 +
  132 + <dependency>
  133 + <groupId>junit</groupId>
  134 + <artifactId>junit</artifactId>
  135 + <version>4.7</version>
  136 + <type>jar</type>
  137 + <scope>test</scope>
  138 + </dependency>
  139 +
  140 + <dependency>
  141 + <groupId>org.mockito</groupId>
  142 + <artifactId>mockito-all</artifactId>
  143 + <version>1.8.1</version>
  144 + <type>jar</type>
  145 + <scope>test</scope>
  146 + </dependency>
  147 + </dependencies>
  148 +
  149 + <!-- Site Generation -->
  150 + <url>http://notnoop.github.com/java-mpns</url>
  151 + <description>
  152 + Library to send Microsoft Push Notification.
  153 + </description>
  154 +
  155 + <licenses>
  156 + <license>
  157 + <name>New BSD License</name>
  158 + <url>http://www.opensource.org/licenses/bsd-license.php</url>
  159 + <distribution>repo</distribution>
  160 + </license>
  161 + </licenses>
  162 +
  163 + <reporting>
  164 + <plugins>
  165 + <plugin>
  166 + <groupId>org.apache.maven.plugins</groupId>
  167 + <artifactId>maven-javadoc-plugin</artifactId>
  168 + <version>2.7</version>
  169 + <configuration>
  170 + <excludePackageNames>com.notnoop.mpns.internal</excludePackageNames>
  171 + </configuration>
  172 + </plugin>
  173 + <plugin>
  174 + <groupId>org.apache.maven.plugins</groupId>
  175 + <artifactId>maven-jxr-plugin</artifactId>
  176 + <version>2.2</version>
  177 + </plugin>
  178 + <plugin>
  179 + <groupId>org.apache.maven.plugins</groupId>
  180 + <artifactId>maven-surefire-plugin</artifactId>
  181 + <version>2.7.1</version>
  182 + </plugin>
  183 + <plugin>
  184 + <groupId>com.atlassian.maven.plugins</groupId>
  185 + <artifactId>maven-clover2-plugin</artifactId>
  186 + <version>2.3.1</version>
  187 + </plugin>
  188 +
  189 + <!--
  190 + <plugin>
  191 + <groupId>org.codehaus.mojo</groupId>
  192 + <artifactId>findbugs-maven-plugin</artifactId>
  193 + <version>2.0.1</version>
  194 + </plugin>
  195 + -->
  196 +
  197 + </plugins>
  198 + </reporting>
  199 +
  200 + <issueManagement>
  201 + <system>Github</system>
  202 + <url>http://github.com/notnoop/java-mpns/issues</url>
  203 + </issueManagement>
  204 +
  205 + <developers>
  206 + <developer>
  207 + <id>notnoop</id>
  208 + <name>Mahmood Ali</name>
  209 + </developer>
  210 + </developers>
  211 +
  212 +</project>

0 comments on commit 0f86474

Please sign in to comment.
Something went wrong with that request. Please try again.