/** * Cancel this observe relation. This methods invokes the cancel methods of * the resource and the endpoint. */ public void cancel() { LOGGER.fine("Canceling observe relation "+getKey()+" with "+resource.getURI()); // stop ongoing retransmissions if (exchange.getResponse()!=null) exchange.getResponse().cancel(); setEstablished(false); resource.removeObserveRelation(this); endpoint.removeObserveRelation(this); exchange.setComplete(); }
/** * Cancel this observe relation. This methods invokes the cancel methods of * the resource and the endpoint. */ public void cancel() { LOGGER.log(Level.FINE, "Canceling observe relation {0} with {1}", new Object[]{getKey(), resource.getURI()}); // stop ongoing retransmissions if (exchange.getResponse()!=null) exchange.getResponse().cancel(); setEstablished(false); resource.removeObserveRelation(this); endpoint.removeObserveRelation(this); exchange.setComplete(); }
relation.setEstablished(true); addObserveRelation(relation); } else if (observeType != null) {
relation.setEstablished(true); addObserveRelation(relation); } else if (observeType != null) {