public UnregisterResponseImpl(final String channelId, final Status status) { super(channelId); checkNotNull(status, "status"); this.status = status; }
public DefaultChannel(final String uaid, final String channelId, final long version, final String endpointToken) { checkNotNull(uaid, "uaid"); checkNotNull(channelId, "channelId"); checkNotNegative(version, "version"); checkNotNull(endpointToken, "endpointToken"); this.uaid = uaid; this.channelId = channelId; this.version = version; this.endpointToken = endpointToken; }
public NotificationMessageImpl(final Set<Ack> acks) { checkNotNullAndNotEmpty(acks, "acks"); this.acks = acks; }
public HelloMessageImpl(final String uaid, final Set<String> channelIds) { if (nullOrEmpty(uaid)) { this.uaid = newUAID(); this.channelIds = Collections.emptySet(); } else { this.channelIds = channelIds; this.uaid = fromString(uaid); } }
private String generateEndpointToken(final String uaid, final String channelId) { return CryptoUtil.endpointToken(uaid, channelId, privateKey); }
public UnregisterResponseImpl(final String channelId, final Status status) { super(channelId); checkNotNull(status, "status"); this.status = status; }
public PingMessageImpl(final String body) { ArgumentUtil.checkNotNullAndNotEmpty(body, "body"); this.body = body; }
private String generateEndpointToken(final String uaid, final String channelId) { return CryptoUtil.endpointToken(uaid, channelId, privateKey); }
public AckImpl(final String channelId, final long version) { checkNotNull(channelId, "channelId"); checkNotNull(version, "version"); this.channelId = channelId; this.version = version; }
public PingMessageImpl(final String body) { ArgumentUtil.checkNotNullAndNotEmpty(body, "body"); this.body = body; }
public RegisterResponseImpl(final String channelId, final Status status, final String pushEndpoint) { super(channelId); checkNotNull(status, "status"); checkNotNull(pushEndpoint, "pushEndpoint"); this.status = status; this.pushEndpoint = pushEndpoint; }
public NotificationMessageImpl(final Set<Ack> acks) { checkNotNullAndNotEmpty(acks, "acks"); this.acks = acks; }
public HelloResponseImpl(final String uaid) { checkNotNull(uaid, "uaid"); this.uaid = uaid; }
public AckImpl(final String channelId, final long version) { checkNotNull(channelId, "channelId"); checkNotNull(version, "version"); this.channelId = channelId; this.version = version; }
public RegisterResponseImpl(final String channelId, final Status status, final String pushEndpoint) { super(channelId); checkNotNull(status, "status"); checkNotNull(pushEndpoint, "pushEndpoint"); this.status = status; this.pushEndpoint = pushEndpoint; }
public RegisterMessageImpl(final String channelId) { checkNotNull(channelId, "channelId"); this.channelId = channelId; }
public UnregisterMessageImpl(final String channelId) { checkNotNull(channelId, "channelId"); this.channelId = channelId; }
public UnregisterMessageImpl(final String channelId) { checkNotNull(channelId, "channelId"); this.channelId = channelId; }
public RegisterMessageImpl(final String channelId) { checkNotNull(channelId, "channelId"); this.channelId = channelId; }
public HelloResponseImpl(final String uaid) { checkNotNull(uaid, "uaid"); this.uaid = uaid; }