Package tigase.push.apns
Class APNsBinaryApiProvider
- java.lang.Object
-
- tigase.push.apns.APNsBinaryApiProvider
-
- All Implemented Interfaces:
tigase.kernel.beans.config.ConfigurationChangedAware
,tigase.kernel.beans.UnregisterAware
,IPushProvider
@Bean(name="apns-binary-api", parent=PushNotificationsComponent.class, active=false) public class APNsBinaryApiProvider extends java.lang.Object implements IPushProvider, tigase.kernel.beans.config.ConfigurationChangedAware, tigase.kernel.beans.UnregisterAware
Created by andrzej on 05.01.2017.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface tigase.push.api.IPushProvider
IPushProvider.Feature
-
-
Constructor Summary
Constructors Constructor Description APNsBinaryApiProvider()
-
Method Summary
-
-
-
Method Detail
-
getName
public java.lang.String getName()
- Specified by:
getName
in interfaceIPushProvider
-
getDescription
public java.lang.String getDescription()
- Specified by:
getDescription
in interfaceIPushProvider
-
maxPayloadSize
public java.util.Optional<java.lang.Integer> maxPayloadSize()
- Specified by:
maxPayloadSize
in interfaceIPushProvider
-
supportedFeatures
public java.util.Set<IPushProvider.Feature> supportedFeatures()
- Specified by:
supportedFeatures
in interfaceIPushProvider
-
pushNotification
public void pushNotification(java.lang.String deviceId, INotification notification)
- Specified by:
pushNotification
in interfaceIPushProvider
-
beforeUnregister
public void beforeUnregister()
- Specified by:
beforeUnregister
in interfacetigase.kernel.beans.UnregisterAware
-
beanConfigurationChanged
public void beanConfigurationChanged(java.util.Collection<java.lang.String> changedFields)
- Specified by:
beanConfigurationChanged
in interfacetigase.kernel.beans.config.ConfigurationChangedAware
-
failureWithFallback
protected void failureWithFallback(ApnsNotification notification, ApnsService.ErrorCode errorCode, ApnsService.ErrorType errorType)
-
failure
protected void failure(ApnsNotification notification, ApnsService.ErrorCode errorCode, ApnsService.ErrorType errorType)
-
preparePayload
protected ApnsPayload.Builder preparePayload(ApnsPayload.Builder builder, INotification notification)
-
preparePlainPayload
protected ApnsPayload.Builder preparePlainPayload(ApnsPayload.Builder builder, IPlainNotification notification)
-
prepareEncryptedPayload
protected ApnsPayload.Builder prepareEncryptedPayload(ApnsPayload.Builder builder, IEncryptedNotification notification)
-
unregisterDevice
protected void unregisterDevice(java.lang.String deviceId)
-
-