Package java.net

Examples of java.net.URL.toExternalForm()


           }
         }
         if( loginConfig != null )
         {
            validateAuthConfigURL(loginConfig);
            log.debug("Using JAAS AuthConfig: "+loginConfig.toExternalForm());
            MBeanServer server = super.getServer();
            Object[] args = {loginConfig};
            String[] sig = {URL.class.getName()};
            configNames = (String[]) server.invoke(loginConfigService,
               "loadConfig", args, sig);
View Full Code Here


         // create the target module ids
         for (int i = 0; i < targets.length; i++)
         {
            JBossTarget target = (JBossTarget)targets[i];
            String moduleID = deployment.toExternalForm();
            targetModuleIDs[i] = new TargetModuleIDImpl(target, moduleID, null, false, type);
         }

         // delete all temp files, except the depoyment
         for (int i = 0; i < tmpFiles.size(); i++)
View Full Code Here

         }

         // Dynamic WebMetaData deployments might not provide an URL
         // We use the DEploymentUnit name as identifier instead.
         // The JAXWS Endpoint API for example does this.
         String warURLString = (warUrl != null ? warUrl.toExternalForm() : unit.getName());

         // Strip any jar: url syntax. This should be be handled by the vfs
         if (warURLString.startsWith("jar:"))
            warURLString = warURLString.substring(4, warURLString.length() - 2);
View Full Code Here

      for (int j = 0; j < jspResources.length; j++)
      {
         URL rsrcURL = loader.getResource(jspResources[j]);
         if (rsrcURL != null)
         {
            String url = rsrcURL.toExternalForm();
            if (rsrcURL.getProtocol().equals("jar"))
            {
               // Parse the jar:<url>!/{entry} URL
               url = url.substring(4);
               int seperator = url.indexOf('!');
View Full Code Here

   private void addURLs(Set urlSet, URL[] urls)
   {
      for (int u = 0; u < urls.length; u++)
      {
         URL url = urls[u];
         urlSet.add(url.toExternalForm());
      }
   }

   public static void bindEnvEntry(Context ctx, EnvironmentEntryMetaData entry) throws ClassNotFoundException, NamingException
   {
View Full Code Here

      DeploymentManager deployMgr = getDeploymentManager(getNamingContext(0));
      URL contentURL = getDeployURL(name);
      assertNotNull(contentURL);
      getLog().debug(contentURL);
      // TODO - hack to get off JDK's url handling
      String urlString = contentURL.toExternalForm();
      int p = urlString.indexOf(":/");
      contentURL = new URL("file" + urlString.substring(p));
      getLog().debug(contentURL);

      DeploymentStatus status;
View Full Code Here

   {
      Client client = getClient();
      URL url = new URL(targetModuleID.getModuleID());
      log.debug("Start: " + url);
      HashMap<String, String> args = new HashMap<String, String>(1);
      args.put("moduleID", url.toExternalForm());
      log.info("Begin start: " + url);
      invoke(client, "start", args);
      log.info("End start");
   }
View Full Code Here

   {
      Client client = getClient();
      URL url = new URL(targetModuleID.getModuleID());
      log.debug("Start: " + url);
      HashMap<String, String> args = new HashMap<String, String>(1);
      args.put("moduleID", url.toExternalForm());
      log.info("Begin stop: " + url);
      invoke(client, "stop", args);
      log.info("End stop");
   }
View Full Code Here

   {
      Client client = getClient();
      URL url = new URL(targetModuleID.getModuleID());
      log.debug("Start: " + url);
      HashMap<String, String> args = new HashMap<String, String>(1);
      args.put("moduleID", url.toExternalForm());
      log.info("Begin undeploy: " + url);
      invoke(client, "undeploy", args);
      log.info("End undeploy");
   }
View Full Code Here

    // Fix for bug #6746185
    // http://bugs.sun.com/view_bug.do?bug_id=6746185
    if (isJava1dot5dot0_16
        && defaultUrl != null
        && "jar".equalsIgnoreCase(defaultUrl.getProtocol())) {
      String defaultUrlExternalForm = defaultUrl.toExternalForm();
      if (defaultUrl.toExternalForm().indexOf("!/") == -1) {
        String fixedUrl = "jar:"
          + resourceClass.getProtectionDomain().getCodeSource().getLocation().toExternalForm()
          + "!/" + defaultUrl.getPath();
       
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.