public class HttpNotificationService extends AbstractNotificationService
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
NOTIFICATION_SUBJECT_KEY |
static java.lang.String |
NOTIFICATION_TYPE_KEY |
static PropertyDescriptor |
PROP_CONNECTION_TIMEOUT |
static PropertyDescriptor |
PROP_KEY_PASSWORD |
static PropertyDescriptor |
PROP_KEYSTORE |
static PropertyDescriptor |
PROP_KEYSTORE_PASSWORD |
static PropertyDescriptor |
PROP_KEYSTORE_TYPE |
static PropertyDescriptor |
PROP_TRUSTSTORE |
static PropertyDescriptor |
PROP_TRUSTSTORE_PASSWORD |
static PropertyDescriptor |
PROP_TRUSTSTORE_TYPE |
static PropertyDescriptor |
PROP_URL |
static PropertyDescriptor |
PROP_WRITE_TIMEOUT |
static PropertyDescriptor |
SSL_ALGORITHM |
static java.lang.String |
STORE_TYPE_JKS |
static java.lang.String |
STORE_TYPE_PKCS12 |
Constructor and Description |
---|
HttpNotificationService() |
Modifier and Type | Method and Description |
---|---|
protected PropertyDescriptor |
getSupportedDynamicPropertyDescriptor(java.lang.String propertyDescriptorName)
Used to allow subclasses to determine what PropertyDescriptor if any to
use when a property is requested for which a descriptor is not already
registered.
|
protected java.util.List<PropertyDescriptor> |
getSupportedPropertyDescriptors()
Allows subclasses to register which property descriptor objects are
supported.
|
protected void |
init(NotificationInitializationContext context) |
void |
notify(NotificationContext context,
NotificationType notificationType,
java.lang.String subject,
java.lang.String message)
Notifies the configured recipients of some event
|
getIdentifier, initialize
customValidate, equals, getPropertyDescriptor, getPropertyDescriptors, hashCode, onPropertyModified, toString, validate
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getPropertyDescriptor, getPropertyDescriptors, onPropertyModified, validate
public static final java.lang.String NOTIFICATION_TYPE_KEY
public static final java.lang.String NOTIFICATION_SUBJECT_KEY
public static final java.lang.String STORE_TYPE_JKS
public static final java.lang.String STORE_TYPE_PKCS12
public static final PropertyDescriptor PROP_URL
public static final PropertyDescriptor PROP_CONNECTION_TIMEOUT
public static final PropertyDescriptor PROP_WRITE_TIMEOUT
public static final PropertyDescriptor PROP_TRUSTSTORE
public static final PropertyDescriptor PROP_TRUSTSTORE_TYPE
public static final PropertyDescriptor PROP_TRUSTSTORE_PASSWORD
public static final PropertyDescriptor PROP_KEYSTORE
public static final PropertyDescriptor PROP_KEYSTORE_TYPE
public static final PropertyDescriptor PROP_KEYSTORE_PASSWORD
public static final PropertyDescriptor PROP_KEY_PASSWORD
public static final PropertyDescriptor SSL_ALGORITHM
protected java.util.List<PropertyDescriptor> getSupportedPropertyDescriptors()
AbstractConfigurableComponent
getSupportedPropertyDescriptors
in class AbstractConfigurableComponent
protected PropertyDescriptor getSupportedDynamicPropertyDescriptor(java.lang.String propertyDescriptorName)
AbstractConfigurableComponent
Used to allow subclasses to determine what PropertyDescriptor if any to use when a property is requested for which a descriptor is not already registered. By default this method simply returns a null descriptor. By overriding this method processor implementations can support dynamic properties since this allows them to register properties on demand. It is acceptable for a dynamically generated property to indicate it is required so long as it is understood it is only required once set. Dynamic properties by definition cannot be required until used.
This method should be side effect free in the subclasses in terms of how often it is called for a given property name because there is guarantees how often it will be called for a given property name.
Default is null.
getSupportedDynamicPropertyDescriptor
in class AbstractConfigurableComponent
propertyDescriptorName
- used to lookup if any property descriptors exist for that nameprotected void init(NotificationInitializationContext context)
init
in class AbstractNotificationService
public void notify(NotificationContext context, NotificationType notificationType, java.lang.String subject, java.lang.String message) throws NotificationFailedException
NotificationService
context
- the context that is relevant for this notificationnotificationType
- the notification typesubject
- the subject of the messagemessage
- the message to be provided to recipientsNotificationFailedException