T - Type of response with notification i.e. ResponseWithNotificationpublic interface NotificationResponseService<T>
| Modifier and Type | Method and Description |
|---|---|
NotificationResolverService |
notificationResolverService() |
T |
responseWithExceptionNotification(java.lang.Throwable throwable,
AdditionalNotificationData additionalNotificationData,
java.lang.Object... exceptionMessageArgumentList)
Returns response with
Notification instance. |
default T |
responseWithExceptionNotification(java.lang.Throwable throwable,
java.lang.Object... additionalMessageArgumentList) |
default <D> T |
responseWithNotification(D data,
java.lang.String actionName) |
<D> T |
responseWithNotification(D data,
java.lang.String actionName,
AdditionalNotificationData additionalNotificationData)
Returns response with
Notification instance. |
default T |
responseWithNotification(java.lang.String actionName) |
default T |
responseWithNotificationActionResolvedFromRequest() |
default <D> T |
responseWithNotificationActionResolvedFromRequest(D data) |
<D> T |
responseWithNotificationActionResolvedFromRequest(D data,
AdditionalNotificationData additionalNotificationData)
Returns response with
Notification instance. |
default T |
responseWithValidationFailureNotification(javax.validation.ConstraintViolationException exception) |
T |
responseWithValidationFailureNotification(javax.validation.ConstraintViolationException exception,
AdditionalNotificationData additionalNotificationData)
Returns response with
ValidationFailureNotification instance. |
default T |
responseWithValidationFailureNotification(org.springframework.validation.Errors errors,
java.lang.Class<?> validationFailedOwningType) |
T |
responseWithValidationFailureNotification(org.springframework.validation.Errors errors,
java.lang.Class<?> validationFailedOwningType,
AdditionalNotificationData additionalNotificationData)
Returns response with
ValidationFailureNotification instance. |
T responseWithValidationFailureNotification(org.springframework.validation.Errors errors, java.lang.Class<?> validationFailedOwningType, AdditionalNotificationData additionalNotificationData)
ValidationFailureNotification instance.errors - Springs Errors that will be used to resolve validation notification messages.validationFailedOwningType - class on which validation errors were foundadditionalNotificationData - additional notification data to add to notificationT responseWithValidationFailureNotification(javax.validation.ConstraintViolationException exception, AdditionalNotificationData additionalNotificationData)
ValidationFailureNotification instance.exception - validation exception that will be used to resolve validation notification messages.additionalNotificationData - additional notification data to add to notificationT responseWithExceptionNotification(java.lang.Throwable throwable, AdditionalNotificationData additionalNotificationData, java.lang.Object... exceptionMessageArgumentList)
Notification instance.throwable - exception for which to resolve notificationadditionalNotificationData - additional notification data to add to notificationexceptionMessageArgumentList - optional exception argument list, will be used when resolving exception message<D> T responseWithNotificationActionResolvedFromRequest(D data, AdditionalNotificationData additionalNotificationData)
Notification instance.D - type of datadata - data to include in responseadditionalNotificationData - additional notification data to add to notification<D> T responseWithNotification(D data, java.lang.String actionName, AdditionalNotificationData additionalNotificationData)
Notification instance.D - type of datadata - data to include in responseactionName - name of the action for which to resolve notificationadditionalNotificationData - additional notification data to add to notificationNotificationResolverService notificationResolverService()
default T responseWithValidationFailureNotification(org.springframework.validation.Errors errors, java.lang.Class<?> validationFailedOwningType)
default T responseWithValidationFailureNotification(javax.validation.ConstraintViolationException exception)
default T responseWithExceptionNotification(java.lang.Throwable throwable, java.lang.Object... additionalMessageArgumentList)
default <D> T responseWithNotificationActionResolvedFromRequest(D data)
default <D> T responseWithNotification(D data, java.lang.String actionName)
default T responseWithNotificationActionResolvedFromRequest()
default T responseWithNotification(java.lang.String actionName)