Package org.eclipse.hono.util
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 Summary
Fields Modifier and Type Field Description static String
CONTENT_TYPE_EMPTY_NOTIFICATION
The content type that is defined for empty events without any payload.static String
EVENT_CONNECTION_NOTIFICATION_CONTENT_TYPE
The content type of the connection notification event.static String
EVENT_ENDPOINT
The name of the event endpoint.static String
EVENT_ENDPOINT_SHORT
The short name of the event endpoint.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
isEmptyNotificationType(String contentType)
Checks if a given content type is the empty notification type.static boolean
isEventEndpoint(String ep)
Checks if a given endpoint name is the Event endpoint.
-
-
-
Field Detail
-
EVENT_ENDPOINT
public static final String EVENT_ENDPOINT
The name of the event endpoint.- See Also:
- Constant Field Values
-
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 eitherEVENT_ENDPOINT
orEVENT_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.
-
-