Examples of ServiceData


Examples of org.cybergarage.upnp.xml.ServiceData

    Parser parser = UPnP.getXMLParser();
    Node scpdNode = parser.parse(file);
    if (scpdNode == null)
      return false;
   
    ServiceData data = getServiceData();
    data.setSCPDNode(scpdNode);

    return true;
  }
View Full Code Here

Examples of org.cybergarage.upnp.xml.ServiceData

    Parser parser = UPnP.getXMLParser();
    Node scpdNode = parser.parse(input);
    if (scpdNode == null)
      return false;
   
    ServiceData data = getServiceData();
    data.setSCPDNode(scpdNode);
   
    return true;
  }
View Full Code Here

Examples of org.cybergarage.upnp.xml.ServiceData

    return parser.parse(scpdFile);
  }

  private Node getSCPDNode()
  {
    ServiceData data = getServiceData();
    Node scpdNode = data.getSCPDNode();
    if (scpdNode != null)
      return scpdNode;
   
    // Thanks for Jaap (Sep 18, 2010)
    Device rootDev = getRootDevice();
    if (rootDev == null)
      return null;
   
    String scpdURLStr = getSCPDURL();

    // Thanks for Robin V. (Sep 18, 2010)
    String rootDevPath = rootDev.getDescriptionFilePath();
    if(rootDevPath!=null) {
      File f;
      f = new File(rootDevPath.concat(scpdURLStr));
   
      if(f.exists()) {
        try {
          scpdNode = getSCPDNode(f);
        } catch (ParserException e) {
          // TODO Auto-generated catch block
          e.printStackTrace();
        }
        if(scpdNode!=null) {
          data.setSCPDNode(scpdNode);
          return scpdNode;
        }
      }
    }

    try {
      URL scpdUrl = new URL(rootDev.getAbsoluteURL(scpdURLStr));
      scpdNode = getSCPDNode(scpdUrl);   
      if (scpdNode != null) {
        data.setSCPDNode(scpdNode);
        return scpdNode;
      }
    }
    catch (Exception e) {}
   
View Full Code Here

Examples of org.cybergarage.upnp.xml.ServiceData

  ////////////////////////////////////////////////

  private ServiceData getServiceData()
  {
    Node node = getServiceNode();
    ServiceData userData = (ServiceData)node.getUserData();
    if (userData == null) {
      userData = new ServiceData();
      node.setUserData(userData);
      userData.setNode(node);
    }
    return userData;
  }
View Full Code Here

Examples of org.ejbca.core.ejb.services.ServiceData

  }

  public void testServiceData() {
    LOG.trace(">testServiceData");
    logMemStats();
    ServiceData entity = new ServiceData();
    entity.setData(CLOB_100KiB);
    entity.setId(BOGUS_INTEGER);
    entity.setName(VARCHAR_250B);
    entity.setNextRunTimeStamp(0L);
    entity.setRowProtection(CLOB_10KiB);
    entity.setRowVersion(0);
    entity.setRunTimeStamp(0L);
    storeAndRemoveEntity(entity);
    LOG.trace("<testServiceData");
  }
View Full Code Here

Examples of org.jboss.blacktie.jatmibroker.core.server.ServiceData

    int min = Math.min(Connection.XATMI_SERVICE_NAME_LENGTH,
        serviceName.length());
    serviceName = serviceName.substring(0, min);
    log.debug("Advertising: " + serviceName);

    ServiceData serviceData = this.serviceData.get(serviceName);
    if (serviceData == null) {
      try {
        ServiceData data = new ServiceData(properties, serviceName,
            serviceClassName);
        this.serviceData.put(serviceName, data);
        log.info("Advertised: " + serviceName);
      } catch (Throwable t) {
        throw new ConnectionException(Connection.TPESYSTEM,
View Full Code Here

Examples of org.jboss.blacktie.jatmibroker.core.server.ServiceData

  public void tpunadvertise(String serviceName) throws ConnectionException {
    serviceName = serviceName.substring(
        0,
        Math.min(Connection.XATMI_SERVICE_NAME_LENGTH,
            serviceName.length()));
    ServiceData data = serviceData.remove(serviceName);
    if (data == null) {
      throw new ConnectionException(Connection.TPENOENT,
          "Service did not exist: " + serviceName);
    }
    data.close();
  }
View Full Code Here

Examples of org.jboss.narayana.blacktie.jatmibroker.core.server.ServiceData

    int min = Math.min(Connection.XATMI_SERVICE_NAME_LENGTH,
        serviceName.length());
    serviceName = serviceName.substring(0, min);
    log.debug("Advertising: " + serviceName);

    ServiceData serviceData = this.serviceData.get(serviceName);
    if (serviceData == null) {
      try {
        ServiceData data = new ServiceData(transportFactory,
            properties, serviceName, serviceClassName);
        this.serviceData.put(serviceName, data);
        log.info("Advertised: " + serviceName);
      } catch (ConnectionException e) {
        throw e;
View Full Code Here

Examples of org.jboss.narayana.blacktie.jatmibroker.core.server.ServiceData

  public void tpunadvertise(String serviceName) throws ConnectionException {
    serviceName = serviceName.substring(
        0,
        Math.min(Connection.XATMI_SERVICE_NAME_LENGTH,
            serviceName.length()));
    ServiceData data = serviceData.remove(serviceName);
    if (data == null) {
      throw new ConnectionException(Connection.TPENOENT,
          "Service did not exist: " + serviceName);
    }
    data.close();
  }
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.