コード例 #1
0
 @Override
 public void established(GENASubscription sub) {
   LOGGER.debug(
       "Subscription established: "
           + sub.getService().getServiceId().getId()
           + " on "
           + getFriendlyName(uuid));
 }
コード例 #2
0
 @Override
 public void eventsMissed(GENASubscription sub, int numberOfMissedEvents) {
   LOGGER.debug(
       "Missed events: "
           + numberOfMissedEvents
           + " for subscription "
           + sub.getService().getServiceId().getId()
           + " on "
           + getFriendlyName(uuid));
 }
コード例 #3
0
 @Override
 public void failed(GENASubscription sub, UpnpResponse response, Exception ex) {
   LOGGER.debug(
       "Subscription failed: "
           + sub.getService().getServiceId().getId()
           + " on "
           + getFriendlyName(uuid)
           + ": "
           + createDefaultFailureMessage(response, ex).split(": ", 2)[1]);
 }
コード例 #4
0
 @Override
 public void failed(
     GENASubscription sub, UpnpResponse response, Exception ex, String defaultMsg) {
   LOGGER.debug(
       "Subscription failed: "
           + sub.getService().getServiceId().getId()
           + " on "
           + getFriendlyName(uuid)
           + ": "
           + defaultMsg.split(": ", 2)[1]);
 }
コード例 #5
0
 @Override
 public void ended(GENASubscription sub, CancelReason reason, UpnpResponse response) {
   // Reason should be null, or it didn't end regularly
   if (reason != null) {
     LOGGER.debug(
         "Subscription cancelled: "
             + sub.getService().getServiceId().getId()
             + " on "
             + uuid
             + ": "
             + reason);
   }
   rendererMap.mark(uuid, RENEW, true);
 }