List of usage examples for java.net URI create
public static URI create(String str)
From source file:com.github.tomakehurst.wiremock.http.GenericHttpUriRequest.java
public GenericHttpUriRequest(String methodName, String url) { this.methodName = methodName; setURI(URI.create(url)); }
From source file:com.github.tomakehurst.wiremock.extension.responsetemplating.UrlPath.java
public UrlPath(String url) { originalPath = URI.create(url).getPath(); Iterable<String> pathNodes = Splitter.on('/').split(originalPath); for (String pathNode : pathNodes) { if (StringUtils.isNotEmpty(pathNode)) { add(pathNode);//from w ww .j a v a 2 s .co m } } }
From source file:com.skalski.raspberrycontrol.Mjpeg.Mjpeg_InputStream.java
public static Mjpeg_InputStream read(String url) throws IOException { HttpResponse res;/*from w w w .j a v a2 s. c o m*/ DefaultHttpClient httpclient = new DefaultHttpClient(); res = httpclient.execute(new HttpGet(URI.create(url))); return new Mjpeg_InputStream(res.getEntity().getContent()); }
From source file:com.aperigeek.dropvault.dav.http.HttpMkcol.java
public HttpMkcol(String uri) { this(URI.create(uri)); }
From source file:org.soyatec.windowsazure.internal.HttpMerge.java
public HttpMerge(final String uri) { this(URI.create(uri)); }
From source file:com.github.sardine.impl.methods.HttpMkCol.java
public HttpMkCol(String url) { this(URI.create(url)); }
From source file:com.github.sardine.impl.methods.HttpLock.java
public HttpLock(String url) { this(URI.create(url)); }
From source file:com.aperigeek.dropvault.dav.http.HttpPropfind.java
public HttpPropfind(String uri) { this(URI.create(uri)); }
From source file:at.alladin.rmbt.client.ndt.NDTRunner.java
public static String getNdtHost() { final JSONParser jParser = new JSONParser(); final JSONObject obj = jParser.getURL(URI.create(at.alladin.rmbt.client.helper.Config.MLAB_NS)); try {/*w w w . j a v a 2 s . c om*/ if (obj != null) { // System.out.println(obj.toString(4)); return obj.getString("fqdn"); } } catch (JSONException e) { e.printStackTrace(); } return at.alladin.rmbt.client.helper.Config.NDT_FALLBACK_HOST; }
From source file:ch.cyberduck.core.hubic.HubicAuthenticationRequest.java
public HubicAuthenticationRequest(final String token) { this(URI.create("https://api.hubic.com/1.0/account/credentials"), token); }