Class EventConstants


  • public final class EventConstants
    extends Object
    Constants > utility methods used throughout the Event API.
    • Field Detail

      • EVENT_ENDPOINT_SHORT

        public static final String EVENT_ENDPOINT_SHORT
        The short name of the event endpoint.
        See Also:
        Constant Field Values
      • EVENT_CONNECTION_NOTIFICATION_CONTENT_TYPE

        public static final String EVENT_CONNECTION_NOTIFICATION_CONTENT_TYPE
        The content type of the connection notification event.
        See Also:
        Constant Field Values
      • CONTENT_TYPE_EMPTY_NOTIFICATION

        public static final String CONTENT_TYPE_EMPTY_NOTIFICATION
        The content type that is defined for empty events without any payload.
        See Also:
        Constant Field Values
    • Method Detail

      • isEventEndpoint

        public static boolean isEventEndpoint​(String ep)
        Checks if a given endpoint name is the Event endpoint.
        Parameters:
        ep - The name to check.
        Returns:
        true if the name is either EVENT_ENDPOINT or EVENT_ENDPOINT_SHORT.
      • isEmptyNotificationType

        public static boolean isEmptyNotificationType​(String contentType)
        Checks if a given content type is the empty notification type.
        Parameters:
        contentType - The content type to check.
        Returns:
        true if the given type is the empty notification type.