Search in sources :

Example 1 with CoapResource

use of org.eclipse.californium.core.CoapResource in project camel by apache.

the class CoAPConsumer method doStop.

@Override
protected void doStop() throws Exception {
    for (CoapResource r : resources) {
        r.getParent().delete(r);
    }
    resources.clear();
    super.doStop();
}
Also used : CoapResource(org.eclipse.californium.core.CoapResource)

Example 2 with CoapResource

use of org.eclipse.californium.core.CoapResource in project thingsboard by thingsboard.

the class CoapTransportService method createResources.

private void createResources() {
    CoapResource api = new CoapResource(API);
    api.add(new CoapTransportResource(processor, authService, adaptor, V1, timeout, quotaService));
    server.add(api);
}
Also used : CoapResource(org.eclipse.californium.core.CoapResource)

Aggregations

CoapResource (org.eclipse.californium.core.CoapResource)2