Examples of URLCheck


Examples of hudson.util.FormValidation.URLCheck

                throws IOException, ServletException {
            if(!project.hasPermission(Item.CONFIGURE))  return FormValidation.ok(); // can't check
            if(value==null) // nothing entered yet
                return FormValidation.ok();

            return new URLCheck() {
                protected FormValidation check() throws IOException, ServletException {
                    String v = value;
                    if(!v.endsWith("/")) v+='/';

                    try {
View Full Code Here

Examples of hudson.util.FormValidation.URLCheck

            // Connect to URL and check content only if we have admin permission
            if (!Hudson.getInstance().hasPermission(Hudson.ADMINISTER))
                return FormValidation.ok();

            final String finalValue = value;
            return new URLCheck() {
                @Override
                protected FormValidation check() throws IOException, ServletException {
                    try {
                        if(findText(open(new URL(finalValue)),"FishEye")) {
                            return FormValidation.ok();
View Full Code Here

Examples of hudson.util.FormValidation.URLCheck

                throws IOException, ServletException {
            if(!project.hasPermission(Item.CONFIGURE))  return FormValidation.ok(); // can't check
            if(value==null) // nothing entered yet
                return FormValidation.ok();

            return new URLCheck() {
                protected FormValidation check() throws IOException, ServletException {
                    String v = value;
                    if(!v.endsWith("/")) v+='/';

                    try {
View Full Code Here

Examples of org.apache.derby.tools.URLCheck

                                // want to continue with the attempt
                        }
                        // By default perform extra checking on the URL attributes.
                        // This checking does not change the processing.
                        if (System.getProperty("ij.URLCheck") == null || Boolean.getBoolean("ij.URLCheck")) {
                          URLCheck aCheck = new URLCheck(sVal);
                        }
                if (!sVal.startsWith("jdbc:") && (p == null) && (protocol != null)) {
                        sVal = protocol + sVal;
                }
View Full Code Here

Examples of org.apache.derby.tools.URLCheck

                                // want to continue with the attempt
                        }
                        // By default perform extra checking on the URL attributes.
                        // This checking does not change the processing.
                        if (System.getProperty("ij.URLCheck") == null || Boolean.getBoolean("ij.URLCheck")) {
                          URLCheck aCheck = new URLCheck(sVal);
                        }
                if (!sVal.startsWith("jdbc:") && (p == null) && (protocol != null)) {
                        sVal = protocol + sVal;
                }
View Full Code Here

Examples of org.apache.derby.tools.URLCheck

                                // want to continue with the attempt
                        }
                        // By default perform extra checking on the URL attributes.
                        // This checking does not change the processing.
                        if (System.getProperty("ij.URLCheck") == null || Boolean.getBoolean("ij.URLCheck")) {
                          URLCheck aCheck = new URLCheck(sVal);
                        }
                if (!sVal.startsWith("jdbc:") && (p == null) && (protocol != null)) {
                        sVal = protocol + sVal;
                }
View Full Code Here

Examples of org.apache.derby.tools.URLCheck

                                // want to continue with the attempt
                        }
                        // By default perform extra checking on the URL attributes.
                        // This checking does not change the processing.
                        if (System.getProperty("ij.URLCheck") == null || Boolean.getBoolean("ij.URLCheck")) {
                          URLCheck aCheck = new URLCheck(sVal);
                        }
                if (!sVal.startsWith("jdbc:") && (p == null) && (protocol != null)) {
                        sVal = protocol + sVal;
                }
View Full Code Here

Examples of org.getspout.spoutapi.io.CRCStore.URLCheck

      }
      if (!url.toLowerCase().endsWith(".zip")) {
        throw new IllegalArgumentException("A Texture Pack must be in a .zip format");
      }
      final String finalURL = url;
      URLCheck urlCheck = new URLCheck(url, new byte[16384], new CRCStoreRunnable() {
        Long CRC;

        @Override
        public void setCRC(Long CRC) {
          this.CRC = CRC;
        }

        @Override
        public void run() {
          sendPacket(new PacketTexturePack(finalURL, CRC));
        }
      });
      urlCheck.start();
    }
  }
View Full Code Here

Examples of org.getspout.spoutapi.io.CRCStore.URLCheck

      LinkedList<Thread> urlThreads = new LinkedList<Thread>();
      Iterator<Entry<Plugin, List<String>>> j = preLoginUrlCache.entrySet().iterator();
      while (j.hasNext()) {
        final Entry<Plugin, List<String>> next = j.next();
        for (final String url : next.getValue()) {
          URLCheck urlCheck = new URLCheck(url, new byte[4096], new CRCStoreRunnable() {
            Long CRC;

            public void setCRC(Long CRC) {
              this.CRC = CRC;
            }

            public void run() {
              player.sendPacket(new PacketPreCacheFile(next.getKey().getDescription().getName(), url, CRC, true));
            }
          });
          urlCheck.setName(url);
          urlCheck.start();
          urlThreads.add(urlCheck);
        }
      }
      new URLCheckJoin(urlThreads, player).start();
    }
View Full Code Here

Examples of org.getspout.spoutapi.io.CRCStore.URLCheck

    if (!isValidUrl(fileUrl)) {
      return false;
    }

    if (addToPreLoginCache(plugin, fileUrl)) {
      URLCheck urlCheck = new URLCheck(fileUrl, new byte[4096], new CRCStoreRunnable() {
        Long CRC;

        public void setCRC(Long CRC) {
          this.CRC = CRC;
        }

        public void run() {
          for (SpoutPlayer player : SpoutManager.getOnlinePlayers()) {
            if (player.isSpoutCraftEnabled()) {
              player.sendPacket(new PacketPreCacheFile(plugin.getDescription().getName(), fileUrl, CRC, true));
            }
          }
        }
      });
      urlCheck.start();
    }
    return false;
  }
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.