Class HTTPNotification
java.lang.Object
org.graylog.events.notifications.types.HTTPNotification
- Direct Known Subclasses:
HTTPEventNotification,HTTPEventNotificationV2
-
Constructor Summary
ConstructorsConstructorDescriptionHTTPNotification(UrlWhitelistService whitelistService, UrlWhitelistNotificationService urlWhitelistNotificationService, EncryptedValueService encryptedValueService) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddApiKey(okhttp3.Request.Builder builder, okhttp3.HttpUrl httpUrl, String apiKey, EncryptedValue apiSecret, boolean sendAsHeader) voidaddAuthHeader(okhttp3.Request.Builder builder, EncryptedValue auth) voidaddHeaders(okhttp3.Request.Builder builder, String headerString) okhttp3.HttpUrlvalidateUrl(String url, String notificationId, String eventDefTitle)
-
Constructor Details
-
HTTPNotification
public HTTPNotification(UrlWhitelistService whitelistService, UrlWhitelistNotificationService urlWhitelistNotificationService, EncryptedValueService encryptedValueService)
-
-
Method Details
-
validateUrl
public okhttp3.HttpUrl validateUrl(String url, String notificationId, String eventDefTitle) throws TemporaryEventNotificationException -
addAuthHeader
-
addApiKey
public void addApiKey(okhttp3.Request.Builder builder, okhttp3.HttpUrl httpUrl, String apiKey, EncryptedValue apiSecret, boolean sendAsHeader) -
addHeaders
-