if (registration != null) { DiscoverRequest request = new DiscoverRequest(target); DiscoverResponse cResponse = server.send(registration, request, TIMEOUT); processDeviceResponse(req, resp, cResponse);
return new DeleteRequest(path); case "discover": return new DiscoverRequest(path); case "create": { int format = o.getInt("contentFormat", ContentFormat.TLV.getCode());
return new DeleteRequest(path); case "discover": return new DiscoverRequest(path); case "create": { int format = o.getInt("contentFormat", ContentFormat.TLV.getCode());
DiscoverResponse response = nodeEnabler.discover(identity, new DiscoverRequest(URI)); if (response.getCode().isError()) { exchange.respond(toCoapResponseCode(response.getCode()), response.getErrorMessage());