Exemplo n.º 1
0
 /** Sends a NOTIFY. */
 public void notify(String state, int expires, String content_type, String body) {
   Message req = MessageFactory.createNotifyRequest(this, event, id, content_type, body);
   if (state != null) {
     SubscriptionStateHeader sh = new SubscriptionStateHeader(state);
     if (expires >= 0) sh.setExpires(expires);
     req.setSubscriptionStateHeader(sh);
   }
   notify(req);
 }