Package org.eclipse.hono.util
Class EventConstants
java.lang.Object
org.eclipse.hono.util.EventConstants
Constants > utility methods used throughout the Event API.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
The registration status of a device. -
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The content type of the device provisioning notification event.static final String
The content type that is defined for empty events without any payload.static final String
The content type of the connection notification event.static final String
The name of the event endpoint.static final String
The short name of the event endpoint. -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
isEmptyNotificationType
(String contentType) Checks if a given content type is the empty notification type.static boolean
Checks if a given endpoint name is the Event endpoint.
-
Field Details
-
EVENT_ENDPOINT
The name of the event endpoint.- See Also:
-
EVENT_ENDPOINT_SHORT
The short name of the event endpoint.- See Also:
-
EVENT_CONNECTION_NOTIFICATION_CONTENT_TYPE
The content type of the connection notification event.- See Also:
-
CONTENT_TYPE_EMPTY_NOTIFICATION
The content type that is defined for empty events without any payload.- See Also:
-
CONTENT_TYPE_DEVICE_PROVISIONING_NOTIFICATION
The content type of the device provisioning notification event.- See Also:
-
-
Method Details
-
isEventEndpoint
Checks if a given endpoint name is the Event endpoint.- Parameters:
ep
- The name to check.- Returns:
true
if the name is eitherEVENT_ENDPOINT
orEVENT_ENDPOINT_SHORT
.
-
isEmptyNotificationType
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.
-