Class EventConstants

java.lang.Object
org.eclipse.hono.util.EventConstants

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

    • EVENT_ENDPOINT

      public static final String EVENT_ENDPOINT
      The name of the event endpoint.
      See Also:
    • EVENT_ENDPOINT_SHORT

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

      public static final String EVENT_CONNECTION_NOTIFICATION_CONTENT_TYPE
      The content type of the connection notification event.
      See Also:
    • 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:
    • CONTENT_TYPE_DEVICE_PROVISIONING_NOTIFICATION

      public static final String CONTENT_TYPE_DEVICE_PROVISIONING_NOTIFICATION
      The content type of the device provisioning notification event.
      See Also:
  • Method Details

    • 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.