Skip to content

Commit f895af5

Browse files
committed
WIP: Add a channel management client
1 parent f112d4e commit f895af5

17 files changed

+1076
-94
lines changed

pom.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,11 @@
123123
<artifactId>junit-jupiter</artifactId>
124124
<version>${junit.version}</version>
125125
</dependency>
126+
<dependency>
127+
<groupId>org.wiremock</groupId>
128+
<artifactId>wiremock</artifactId>
129+
<version>${wiremock.version}</version>
130+
</dependency>
126131
<dependency>
127132
<groupId>org.slf4j</groupId>
128133
<artifactId>slf4j-simple</artifactId>
@@ -147,6 +152,7 @@
147152
<netty.version>4.1.119.Final</netty.version>
148153
<junit.version>5.12.1</junit.version>
149154
<slf4j.version>1.7.21</slf4j.version>
155+
<wiremock.version>3.12.1</wiremock.version>
150156
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
151157
</properties>
152158

pushy/pom.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,11 @@
6767
<artifactId>slf4j-simple</artifactId>
6868
<scope>test</scope>
6969
</dependency>
70+
<dependency>
71+
<groupId>org.wiremock</groupId>
72+
<artifactId>wiremock</artifactId>
73+
<scope>test</scope>
74+
</dependency>
7075
<dependency>
7176
<groupId>io.netty</groupId>
7277
<artifactId>netty-transport-native-epoll</artifactId>

pushy/src/main/java/com/eatthepath/pushy/apns/ApnsChannelManagementChannelFactory.java

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,11 @@
11
package com.eatthepath.pushy.apns;
22

3-
import io.netty.channel.Channel;
43
import io.netty.channel.ChannelPipeline;
5-
import io.netty.handler.flush.FlushConsolidationHandler;
64
import io.netty.handler.ssl.SslHandler;
7-
import io.netty.handler.timeout.IdleStateHandler;
8-
import io.netty.util.AttributeKey;
9-
import io.netty.util.concurrent.Promise;
10-
11-
import java.util.concurrent.TimeUnit;
125

136
/**
14-
* An APNs channel factory creates new channels connected to an APNs server. Channels constructed by this factory are
15-
* intended for use in an {@link ApnsChannelPool}.
7+
* An APNs channel factory creates new channels connected to an APNs channel management server. Channels constructed by
8+
* this factory are intended for use in an {@link ApnsChannelPool}.
169
*/
1710
class ApnsChannelManagementChannelFactory extends AbstractApnsChannelFactory {
1811

0 commit comments

Comments
 (0)