@Test public void getUAID() throws ChannelNotFoundException { final String channelId = UUID.randomUUID().toString(); final String uaid = UUIDUtil.newUAID(); server.handleRegister(new RegisterMessageImpl(channelId), uaid); assertThat(server.getUAID(channelId), is(equalTo(uaid))); }
public String getUAID(final String channelId) throws ChannelNotFoundException { return getChannel(channelId).getUAID(); }
DefaultSimplePushServer implements SimplePushServer { public String getUAID(final String channelId) throws ChannelNotFoundException { return getChannel(channelId).getUAID(); } }
DefaultSimplePushServer implements SimplePushServer { public String getUAID(final String channelId) throws ChannelNotFoundException { return getChannel(channelId).getUAID(); } DefaultSimplePushServer(final DataStore store, final SimplePushServerConfig config, final byte[] privateKey); }
DefaultSimplePushServer implements SimplePushServer { public String getUAID(final String channelId) throws ChannelNotFoundException { return getChannel(channelId).getUAID(); } DefaultSimplePushServer(final DataStore store, final SimplePushServerConfig config, final byte[] privateKey); @Override HelloResponse handleHandshake(final HelloMessage handshake); @Override RegisterResponse handleRegister(final RegisterMessage register, final String uaid); @Override Notification handleNotification(final String endpointToken, final String body); @Override UnregisterResponse handleUnregister(final UnregisterMessage unregister, final String uaid); @Override Set<Ack> handleAcknowledgement(final AckMessage ackMessage, final String uaid); @Override Set<Ack> getUnacknowledged(final String uaid); String getUAID(final String channelId); Channel getChannel(final String channelId); boolean hasChannel(final String uaid, final String channelId); boolean removeChannel(final String channnelId, final String uaid); @Override void removeAllChannels(final String uaid); @Override SimplePushServerConfig config(); static byte[] generateAndStorePrivateKey(final DataStore store, final SimplePushServerConfig config); }
DefaultSimplePushServer implements SimplePushServer { public String getUAID(final String channelId) throws ChannelNotFoundException { return getChannel(channelId).getUAID(); } DefaultSimplePushServer(final DataStore store, final SimplePushServerConfig config, final byte[] privateKey); @Override HelloResponse handleHandshake(final HelloMessage handshake); @Override RegisterResponse handleRegister(final RegisterMessage register, final String uaid); @Override Notification handleNotification(final String endpointToken, final String body); @Override UnregisterResponse handleUnregister(final UnregisterMessage unregister, final String uaid); @Override Set<Ack> handleAcknowledgement(final AckMessage ackMessage, final String uaid); @Override Set<Ack> getUnacknowledged(final String uaid); String getUAID(final String channelId); Channel getChannel(final String channelId); boolean hasChannel(final String uaid, final String channelId); boolean removeChannel(final String channnelId, final String uaid); @Override void removeAllChannels(final String uaid); @Override SimplePushServerConfig config(); static byte[] generateAndStorePrivateKey(final DataStore store, final SimplePushServerConfig config);  }