Changeset 1127 for extensions/net.sf.basedb.genepattern
- Timestamp:
- Jun 15, 2009, 2:38:01 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/net.sf.basedb.genepattern/trunk/src/net/sf/basedb/genepattern/file/FileTransferGateway.java
r1116 r1127 49 49 50 50 private final String id; 51 private final String baseUrl;51 private final String downloadServletUrl; 52 52 private final Set<String> uploadFiles; 53 53 private final Set<File> downloadFiles; … … 58 58 /** 59 59 Create a new gateway. 60 @param baseUrl The URL to the home directory for the GenePattern 61 web client extension (eg. http://your.base.server/base/extensions/gp-integration.jar) 62 as seen from the GenePattern server. The base URL is used to create the 63 full URL:s for downloading the files 64 */ 65 public FileTransferGateway(String baseUrl) 66 { 67 this.baseUrl = baseUrl; 60 @param downloadServletUrl The URL to the download servlet that is listening 61 for requests from the GenePattern server to download file. 62 */ 63 public FileTransferGateway(String downloadServletUrl) 64 { 65 this.downloadServletUrl = downloadServletUrl; 68 66 this.id = "gp-" + System.identityHashCode(this); 69 67 this.subDir = new DateFormatter("yyyy-MM-dd").format(new Date()); … … 149 147 } 150 148 uploadFiles.add(filename); 151 return new Parameter(gpParameterName, baseUrl + "/Download/" + downloadPath + ".servlet");149 return new Parameter(gpParameterName, downloadServletUrl + "/" + downloadPath); 152 150 } 153 151
Note: See TracChangeset
for help on using the changeset viewer.