Examples of toURI()


Examples of dk.i2m.drupal.util.URLBuilder.toURI()

        List<NameValuePair> nvps = new ArrayList<NameValuePair>();
        nvps.add(new BasicNameValuePair("username", username));
        nvps.add(new BasicNameValuePair("password", password));

        HttpPost method = new HttpPost(builder.toURI());
        method.setEntity(new UrlEncodedFormEntity(nvps, Consts.UTF_8));

        ResponseHandler<String> handler = new BasicResponseHandler();
        getDc().getHttpClient().execute(method, handler);
    }
View Full Code Here

Examples of eu.stratosphere.core.fs.Path.toUri()

      throw new InvalidProgramException("File path of FileDataSink is empty string.");
    }
   
    try {
      Path p = new Path(path);
      String scheme = p.toUri().getScheme();
     
      if (scheme == null) {
        throw new InvalidProgramException("File path \"" + path + "\" of FileDataSink has no file system scheme (like 'file:// or hdfs://').");
      }
    } catch (Exception e) {
View Full Code Here

Examples of hudson.FilePath.toURI()

                // http://host/hudson/job/foo/123/artifact/src/Foo.java
                // Careful with path separator between $1 and $2:
                // workspaceDir will not normally end with one;
                // workspaceDir.toURI() will end with '/' if and only if workspaceDir.exists() at time of call
                wsPattern = Pattern.compile("(" +
                    Pattern.quote(ws.getRemote()) + "|" + Pattern.quote(ws.toURI().toString()) + ")[/\\\\]?([^:#\\s]*)");
            }
            for (String line : lines) {
                line = line.replace('\0',' '); // shall we replace other control code? This one is motivated by http://www.nabble.com/Problems-with-NULL-characters-in-generated-output-td25005177.html
                if (wsPattern != null) {
                    // Perl: $line =~ s{$rx}{$path = $2; $path =~ s!\\\\!/!g; $workspaceUrl . $path}eg;
View Full Code Here

Examples of io.netty.handler.codec.http.QueryStringEncoder.toUri()

        QueryStringEncoder encoder = new QueryStringEncoder(uri.toString());
        for (Map.Entry<String, Object> e : params.entrySet()) {
            encoder.addParam(e.getKey(), String.valueOf(e.getValue()));
        }
        try {
            return encoder.toUri();
        } catch (URISyntaxException e) {
            throw new IllegalArgumentException("Cannot construct a query string from the given params. " +
                    "An invalid parameter was used.");
        }
    }
View Full Code Here

Examples of java.io.File.toURI()

  }

  public VirtualFile applyTemplate(DeploymentTemplateInfo sourceInfo) throws Exception {
    File dsXml = File.createTempFile(getClass().getSimpleName(),TranslatorParserDeployer.TRANSLATOR_SUFFIX);
    writeTemplate(dsXml, sourceInfo);
    return VFS.getRoot(dsXml.toURI());
  }
 
  private void writeTemplate(File dsXml, DeploymentTemplateInfo values) throws Exception {

    TranslatorMetaDataGroup group = new TranslatorMetaDataGroup();
View Full Code Here

Examples of java.io.File.toURI()

 
   public WSDLReference createWSDLReference(BPELEngineImpl engine, QName processId, QName serviceName, String portName)
    {
      File targetWSDLFile = findWSDLFile(engine, processId, serviceName, portName);
      Definition wsdlDefinition = getWSDLDefinition(engine, processId, serviceName);
      return new WSDLReference(wsdlDefinition, targetWSDLFile.toURI());
    }

    private File findWSDLFile(BPELEngineImpl engine, QName processId, QName serviceName, String portName)
    {
      ProcessConf pconf = engine._store.getProcessConfiguration(processId);
View Full Code Here

Examples of java.io.File.toURI()

    protected Ajp13SocketConnector ajp13;

    public static JettyServer init(Server server, ServerConfig config) throws IOException {
        File configFile = config.getConfigFile();
        if (configFile != null && configFile.exists()) {
            return new JettyServer(configFile.toURI().toURL());
        } else if (config.hasWebsrvPort() || config.hasAjp13Port()) {
            return new JettyServer(config.getWebsrvPort(), config.getAjp13Port(), server);
        }
        return null;
    }
View Full Code Here

Examples of java.io.File.toURI()

            notCompatiblePlugins.toString(), 400);
      }


      if (tmpFile.length() > 0) {
        java.net.URL url = tmpFile.toURI().toURL();
        SoftwareUpdater softwareUpdater = new SoftwareUpdater(url, false, true);
        mSoftwareUpdateItems = softwareUpdater.getAvailableSoftwareUpdateItems();
        dtde.dropComplete(true);

        SoftwareUpdateDlg updateDlg = new SoftwareUpdateDlg(this, false, mSoftwareUpdateItems);
View Full Code Here

Examples of java.io.File.toURI()

        URL wsdlURL = SecureServiceTestHarnessService.WSDL_LOCATION;
        if (args.length > 0) {
            File wsdlFile = new File(args[0]);
            try {
                if (wsdlFile.exists()) {
                    wsdlURL = wsdlFile.toURI().toURL();
                } else {
                    wsdlURL = new URL(args[0]);
                }
            } catch (MalformedURLException e) {
                e.printStackTrace();
View Full Code Here

Examples of java.io.File.toURI()

        }
       
        File wsdlFile = new File(args[0]);
        try {
            if (wsdlFile.exists()) {
                wsdlURL = wsdlFile.toURI().toURL();
            } else {
                wsdlURL = new URL(args[0]);
            }
        } catch (MalformedURLException e) {
            e.printStackTrace();
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.