Skip to content

Commit a963d77

Browse files
committed
Remove no more used classes (since transport layer refactoring is done)
1 parent 6091fc3 commit a963d77

File tree

17 files changed

+37
-1137
lines changed

17 files changed

+37
-1137
lines changed

leshan-client-cf/src/main/java/org/eclipse/leshan/client/californium/endpoint/coaps/CoapsClientEndpointFactory.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@
6767
import org.eclipse.leshan.core.CertificateUsage;
6868
import org.eclipse.leshan.core.SecurityMode;
6969
import org.eclipse.leshan.core.californium.DefaultExceptionTranslator;
70-
import org.eclipse.leshan.core.californium.EndpointContextUtil;
7170
import org.eclipse.leshan.core.californium.ExceptionTranslator;
7271
import org.eclipse.leshan.core.californium.Lwm2mEndpointContextMatcher;
7372
import org.eclipse.leshan.core.californium.identity.IdentityHandler;
@@ -76,6 +75,7 @@
7675
import org.eclipse.leshan.core.request.Identity;
7776
import org.eclipse.leshan.core.request.exception.TimeoutException;
7877
import org.eclipse.leshan.core.request.exception.TimeoutException.Type;
78+
import org.eclipse.leshan.core.util.X509CertUtil;
7979
import org.slf4j.Logger;
8080
import org.slf4j.LoggerFactory;
8181

@@ -358,7 +358,7 @@ public Identity getIdentity(Message receivedMessage) {
358358
return Identity.rpk(peerAddress, publicKey);
359359
} else if (senderIdentity instanceof X500Principal || senderIdentity instanceof X509CertPath) {
360360
// Extract common name
361-
String x509CommonName = EndpointContextUtil.extractCN(senderIdentity.getName());
361+
String x509CommonName = X509CertUtil.extractCN(senderIdentity.getName());
362362
return Identity.x509(peerAddress, x509CommonName);
363363
}
364364
throw new IllegalStateException(

leshan-core-cf/src/main/java/org/eclipse/leshan/core/californium/AsyncRequestObserver.java

-5
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,6 @@
3333
*/
3434
public abstract class AsyncRequestObserver<T extends LwM2mResponse> extends CoapAsyncRequestObserver {
3535

36-
public AsyncRequestObserver(Request coapRequest, final ResponseCallback<T> responseCallback,
37-
final ErrorCallback errorCallback, long timeoutInMs, ScheduledExecutorService executor) {
38-
this(coapRequest, responseCallback, errorCallback, timeoutInMs, executor, new TemporaryExceptionTranslator());
39-
}
40-
4136
/**
4237
* A Californium message observer for a CoAP request helping to get results asynchronously dedicated for LWM2M
4338
* requests.

leshan-core-cf/src/main/java/org/eclipse/leshan/core/californium/DefaultEndpointFactory.java

-201
This file was deleted.

leshan-core-cf/src/main/java/org/eclipse/leshan/core/californium/EndpointContextUtil.java

-135
This file was deleted.

0 commit comments

Comments
 (0)