Package org.cybergarage.upnp.event

Examples of org.cybergarage.upnp.event.SubscriptionRequest.post()


  {
    SubscriptionRequest subReq = new SubscriptionRequest();
    subReq.setRenewRequest(service, uuid, timeout);
    if (Debug.isOn() == true)
      subReq.print()
    SubscriptionResponse subRes = subReq.post();
    if (Debug.isOn() == true)
      subRes.print()
    if (subRes.isSuccessful() == true) {
      service.setSID(subRes.getSID());
      service.setTimeout(subRes.getTimeout());
View Full Code Here


 
  public boolean unsubscribe(Service service)
  {
    SubscriptionRequest subReq = new SubscriptionRequest();
    subReq.setUnsubscribeRequest(service);
    SubscriptionResponse subRes = subReq.post();
    if (subRes.isSuccessful() == true) {
      service.clearSID();
      return true;
    }
    return false;
View Full Code Here

    if (rootDev == null)
      return false;
    String ifAddress = rootDev.getInterfaceAddress();    
    SubscriptionRequest subReq = new SubscriptionRequest();
    subReq.setSubscribeRequest(service, getEventSubCallbackURL(ifAddress), timeout);
    SubscriptionResponse subRes = subReq.post();
    if (subRes.isSuccessful() == true) {
      service.setSID(subRes.getSID());
      service.setTimeout(subRes.getTimeout());
      return true;
     
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.