/** * <p> * Returns a string representing the connection url (works currently only * with tcp connections). * </p> * * TODO Better: Implement and call SourceURL.toString() method * * @return a string representing the connection url */ protected String getConnectionString() { if (urlCache == null) { StringBuilder sb = new StringBuilder(url.getProtocol()); sb.append("://"); sb.append(url.getHost()); sb.append(":"); sb.append(url.getPort()); urlCache = sb.toString(); } return urlCache; }
/** * <p> * Returns a string representing the connection url (works currently only * with tcp connections). * </p> * * TODO Better: Implement and call SourceURL.toString() method * * @return a string representing the connection url */ protected String getConnectionString() { if (urlCache == null) { StringBuilder sb = new StringBuilder(url.getProtocol()); sb.append("://"); sb.append(url.getHost()); sb.append(":"); sb.append(url.getPort()); urlCache = sb.toString(); } return urlCache; }
private SourceURL createUrl(String fileName) throws Exception { String urlString = url.getProtocol() + ":" + url.getPath() + "/" + fileName; return new SourceURL(urlString); }
private SourceURL createUrl(String fileName) throws Exception { String urlString = url.getProtocol() + ":" + url.getPath() + "/" + fileName; return new SourceURL(urlString); }
&& (!(this.url.getProtocol() .equals(SourceURL.PROTOCOL_FILE)) || !(this.url .getProtocol().equals(SourceURL.PROTOCOL_CLASSPATH)))) throw new IllegalArgumentException("Given URL " + url.getPath() + "is no local directory");
&& (!(this.url.getProtocol() .equals(SourceURL.PROTOCOL_FILE)) || !(this.url .getProtocol().equals(SourceURL.PROTOCOL_CLASSPATH)))) throw new IllegalArgumentException("Given URL " + url.getPath() + "is no local directory");