Package org.eclipse.hono.util
Class RegistrationConstants
- java.lang.Object
-
- org.eclipse.hono.util.RequestResponseApiConstants
-
- org.eclipse.hono.util.RegistrationConstants
-
public final class RegistrationConstants extends RequestResponseApiConstants
Constants & utility methods used throughout the Registration API.
-
-
Field Summary
Fields Modifier and Type Field Description static String
ACTION_ASSERT
The AMQP 1.0 subject to use for the assert device registration operation.static String
ACTION_DEREGISTER
The AMQP 1.0 subject to use for the deregister device operation.static String
ACTION_GET
The AMQP 1.0 subject to use for the get registration information operation.static String
ACTION_REGISTER
The AMQP 1.0 subject to use for the register device operation.static String
ACTION_UPDATE
The AMQP 1.0 subject to use for the update device registration operation.static String
EVENT_BUS_ADDRESS_REGISTRATION_IN
The vert.x event bus address to which inbound registration messages are published.static String
FIELD_DATA
The name of the field in a response to the get registration information operation that contains a device's registration information.static String
FIELD_VIA
The name of the field in a device's registration information that contains the identifier of the gateway that it is connected to (either as string value or inside a JSON array).static String
REGISTRATION_ENDPOINT
The name of the Device Registration API endpoint.-
Fields inherited from class org.eclipse.hono.util.RequestResponseApiConstants
CONTENT_TYPE_APPLICATION_JSON, FIELD_ENABLED, FIELD_ERROR, FIELD_OBJECT_ID, FIELD_PAYLOAD, FIELD_PAYLOAD_DEFAULTS, FIELD_PAYLOAD_DEVICE_ID, FIELD_PAYLOAD_SUBJECT_DN, FIELD_PAYLOAD_TENANT_ID
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
isValidAction(String action)
Checks if a given string represents a valid action.-
Methods inherited from class org.eclipse.hono.util.RequestResponseApiConstants
getAmqpReply, getErrorMessage
-
-
-
-
Field Detail
-
ACTION_ASSERT
public static final String ACTION_ASSERT
The AMQP 1.0 subject to use for the assert device registration operation.- See Also:
- Constant Field Values
-
ACTION_REGISTER
public static final String ACTION_REGISTER
The AMQP 1.0 subject to use for the register device operation.- See Also:
- Constant Field Values
-
ACTION_GET
public static final String ACTION_GET
The AMQP 1.0 subject to use for the get registration information operation.- See Also:
- Constant Field Values
-
ACTION_DEREGISTER
public static final String ACTION_DEREGISTER
The AMQP 1.0 subject to use for the deregister device operation.- See Also:
- Constant Field Values
-
ACTION_UPDATE
public static final String ACTION_UPDATE
The AMQP 1.0 subject to use for the update device registration operation.- See Also:
- Constant Field Values
-
FIELD_DATA
public static final String FIELD_DATA
The name of the field in a response to the get registration information operation that contains a device's registration information.- See Also:
- Constant Field Values
-
FIELD_VIA
public static final String FIELD_VIA
The name of the field in a device's registration information that contains the identifier of the gateway that it is connected to (either as string value or inside a JSON array).- See Also:
- Constant Field Values
-
REGISTRATION_ENDPOINT
public static final String REGISTRATION_ENDPOINT
The name of the Device Registration API endpoint.- See Also:
- Constant Field Values
-
EVENT_BUS_ADDRESS_REGISTRATION_IN
public static final String EVENT_BUS_ADDRESS_REGISTRATION_IN
The vert.x event bus address to which inbound registration messages are published.- See Also:
- Constant Field Values
-
-
Method Detail
-
isValidAction
public static boolean isValidAction(String action)
Checks if a given string represents a valid action.- Parameters:
action
- The string to check.- Returns:
true
if the given string is a supported action.
-
-