Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [leshan-dev] Question regarding CoapRequestBuilder after changes in BootstrapDeleteRequest

Good catch ! I opened a bug : https://github.com/eclipse/leshan/issues/627.

Thx for reporting this.

Simon

Le 07/12/2018 à 12:26, Віталій Захаряк a écrit :
Hi guys!

In commit fe58a359c069d364b33c906d82c3afcaa26b645a ("BootstrapDelete Request can target "none root" path.") has been added possibility to delete "none-root" objects during bootstrap procedure
As I understand this change must be synchronized with method

org.eclipse.leshan.server.californium.impl.CoapRequestBuilder.visit(BootstrapDeleteRequest request)

where COAP request is being formed

    @Override
    public void visit(BootstrapDeleteRequest request) {
        coapRequest = Request.newDelete();
        coapRequest.setConfirmable(true);
        EndpointContext context = EndpointContextUtil.extractContext(destination);
        coapRequest.setDestinationContext(context);
// here probably we have to call setTarget(coapRequest, request.getPath()); by analogue with rest methods of visitor
    }


I'm right?

Thanks

_______________________________________________
leshan-dev mailing list
leshan-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/leshan-dev

Back to the top