Package org.jboss.virtual

Examples of org.jboss.virtual.VirtualFile.toURL()


               log.trace(file + " is not a leaf");
            try
            {
               VirtualFile jbossStructure = file.findChild("META-INF/jboss-structure.xml");
               log.trace("... context has a META-INF/jboss-structure.xml");
               URL url = jbossStructure.toURL();
               UnmarshallerFactory factory = UnmarshallerFactory.newInstance();
               Unmarshaller unmarshaller = factory.newUnmarshaller();
               StructureMetaDataObjectFactory ofactory = new StructureMetaDataObjectFactory();
               unmarshaller.unmarshal(url.toString(), ofactory, metaData);
               isJBossStructure = true;
View Full Code Here


   public URL getResource(String name)
   {
      try
      {
         VirtualFile child = root.findChild(name);
         return child.toURL();
      }
      catch (URISyntaxException e)
      {
         return null;
      }
View Full Code Here

   {
      try
      {
         VirtualFile child = root.findChild(name);
         Vector<URL> vector = new Vector<URL>();
         vector.add(child.toURL());
         return vector.elements();
      }
      catch (URISyntaxException e)
      {
         return null;
View Full Code Here

      VirtualFile child = findChild(path);
      if (child != null)
      {
         try
         {
            return child.toURL();
         }
         catch (Exception ignored)
         {
            log.debug("Error determining URL for " + child, ignored);
            return null;
View Full Code Here

      {
         try
         {
            VirtualFile child = root.getChild(name);
            if (child != null)
               urls.add(child.toURL());
         }
         catch (Exception e)
         {
            log.debug("Error getting resources for " + root, e);
         }
View Full Code Here

      URL rootURL = null;
      if (root != null)
      {
         try
         {
            rootURL = root.toURL();
            manifest = manifestCache.get(rootURL);
            if (manifest == null)
            {
               manifest = VFSUtils.getManifest(root);
               if (manifest == null)
View Full Code Here

         return null;
      }
      try
      {
         VirtualFile root = findRoot(path);
         URL codeSourceURL = isUseRealURL() ? VFSUtils.getRealURL(root) : root.toURL();

         if (log.isTraceEnabled())
            log.trace("getProtectionDomain:className="+ className + " path="+ path + " codeSourceURL=" + codeSourceURL);

         Certificate[] certs = null; // TODO JBCL-67 determine certificates
View Full Code Here

      String name = unit.getSimpleName();
      if (parent != null)
         name = parent.getSimpleName() + "#" + name;

      VirtualFile file = unit.getMetaDataFile(jeeSpecRarDD);
      deployment.getConnectorMetaData().setURL(file.toURL());
      metaDataRepository.addConnectorMetaData(name, deployment.getConnectorMetaData());

      return deployment;
   }
View Full Code Here

   {
      try
      {
         VirtualFile file = findFile(className);
         if (file != null)
            return file.toURL();
      }
      catch (Exception ignored)
      {
      }
      return null;
View Full Code Here

            {
               VirtualFile jbossStructure = file.getChild("META-INF/jboss-structure.xml");
               if (jbossStructure != null)
               {
                  log.trace("... context has a META-INF/jboss-structure.xml");
                  URL url = jbossStructure.toURL();
                  UnmarshallerFactory factory = UnmarshallerFactory.newInstance();
                  Unmarshaller unmarshaller = factory.newUnmarshaller();
                  StructureMetaDataObjectFactory ofactory = new StructureMetaDataObjectFactory();
                  unmarshaller.unmarshal(url.toString(), ofactory, structureContext.getMetaData());
                  isJBossStructure = 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.