/** * Constructs a new CoapObserveRelation with the specified request. * * @param request the request * @param endpoint the endpoint */ protected CoapObserveRelation(Request request, Endpoint endpoint) { this.request = request; this.endpoint = endpoint; this.orderer = new ObserveNotificationOrderer(); }
/** * Constructs a new CoapObserveRelation with the specified request. * * @param request the request * @param endpoint the endpoint */ protected CoapObserveRelation(Request request, Endpoint endpoint) { this.request = request; this.endpoint = endpoint; this.orderer = new ObserveNotificationOrderer(); }
/** * Constructs a new resource with the specified name and makes it visible to * clients if the flag is true. * * @param name the name * @param visible if the resource is visible */ public CoapResource(String name, boolean visible) { this.name = name; this.path = ""; this.visible = visible; this.attributes = new ResourceAttributes(); this.children = new ConcurrentHashMap<String, Resource>(); this.observers = new CopyOnWriteArrayList<ResourceObserver>(); this.observeRelations = new ObserveRelationContainer(); this.notificationOrderer = new ObserveNotificationOrderer(); }
/** * Constructs a new resource with the specified name and makes it visible to * clients if the flag is true. * * @param name the name * @param visible if the resource is visible */ public CoapResource(String name, boolean visible) { this.name = name; this.path = ""; this.setVisible(visible); this.attributes = new ResourceAttributes(); this.children = new ConcurrentHashMap<String, Resource>(); this.observers = new CopyOnWriteArrayList<ResourceObserver>(); this.observeRelations = new ObserveRelationContainer(); this.notificationOrderer = new ObserveNotificationOrderer(); }
this.orderer = new ObserveNotificationOrderer(); return true; } else {
this.orderer = new ObserveNotificationOrderer(); return true; } else {