get(String deviceId);
-
- /**
- * Gets registration information for a device.
- *
- * This default implementation simply returns the result of {@link #get(String)}.
- *
- * @param deviceId The id of the device to check.
- * @param context The currently active OpenTracing span. An implementation
- * should use this as the parent for any span it creates for tracing
- * the execution of this operation.
- * @return A future indicating the result of the operation.
- *
- * The future will succeed if a response with status 200 has been received from the registration service.
- * The JSON object will then contain values as defined in
- * Get
- * Registration Information.
- *
- * Otherwise, the future will fail with a {@link ServiceInvocationException} containing the (error) status
- * code returned by the service.
- * @throws NullPointerException if device ID is {@code null}.
- * @see RequestResponseClient#setRequestTimeout(long)
- */
- default Future get(String deviceId, final SpanContext context) {
- return get(deviceId);
- }
}
diff --git a/client/src/main/java/org/eclipse/hono/client/impl/RegistrationClientImpl.java b/client/src/main/java/org/eclipse/hono/client/impl/RegistrationClientImpl.java
index 618a59c9b3..36e1cf33de 100644
--- a/client/src/main/java/org/eclipse/hono/client/impl/RegistrationClientImpl.java
+++ b/client/src/main/java/org/eclipse/hono/client/impl/RegistrationClientImpl.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2016, 2019 Contributors to the Eclipse Foundation
+ * Copyright (c) 2016, 2020 Contributors to the Eclipse Foundation
*
* See the NOTICE file(s) distributed with this work for additional
* information regarding copyright ownership.
@@ -164,45 +164,6 @@ private Map createDeviceIdProperties(final String deviceId) {
return properties;
}
- /**
- * Invokes the Get Registration Information operation of Hono's
- * Device Registration API
- * on the service represented by the sender and receiver links.
- */
- @Override
- public final Future get(final String deviceId) {
- return get(deviceId, null);
- }
-
- /**
- * Invokes the Get Registration Information operation of Hono's
- * Device Registration API
- * on the service represented by the sender and receiver links.
- */
- @Override
- public final Future get(final String deviceId, final SpanContext context) {
-
- Objects.requireNonNull(deviceId);
- final Future resultTracker = Future.future();
-
- createAndSendRequest(
- RegistrationConstants.ACTION_GET,
- createDeviceIdProperties(deviceId),
- null,
- resultTracker,
- null,
- context);
-
- return resultTracker.map(regResult -> {
- switch (regResult.getStatus()) {
- case HttpURLConnection.HTTP_OK:
- return regResult.getPayload();
- default:
- throw StatusCodeMapper.from(regResult);
- }
- });
- }
-
/**
* Invokes the Assert Device Registration operation of Hono's
* Device Registration API
diff --git a/site/homepage/content/release-notes.md b/site/homepage/content/release-notes.md
index 61a19dcdb4..0bc2eb07ce 100644
--- a/site/homepage/content/release-notes.md
+++ b/site/homepage/content/release-notes.md
@@ -2,6 +2,15 @@
title = "Release Notes"
+++
+## 1.0.4
+
+### API Changes
+
+* The `org.eclipse.hono.client.DeviceRegistration` interface's *get* methods have been removed
+ because the Device Registration API does not define a corresponding operation.
+ Consequently, the C&C functionality of the Kerlink Lora provider which relied on the *get*
+ method has been removed.
+
## 1.0.3
### Fixes & Enhancements
diff --git a/tests/src/test/java/org/eclipse/hono/tests/jms/JmsBasedRegistrationClient.java b/tests/src/test/java/org/eclipse/hono/tests/jms/JmsBasedRegistrationClient.java
index b6da255352..4da48b7eca 100644
--- a/tests/src/test/java/org/eclipse/hono/tests/jms/JmsBasedRegistrationClient.java
+++ b/tests/src/test/java/org/eclipse/hono/tests/jms/JmsBasedRegistrationClient.java
@@ -147,14 +147,6 @@ public Future sendRequest(
}
}
- /**
- * {@inheritDoc}
- */
- @Override
- public Future get(final String deviceId) {
- throw new UnsupportedOperationException("not implemented");
- }
-
/**
* {@inheritDoc}
*/