Ignore:
Timestamp:
Jun 15, 2009, 2:38:01 PM (14 years ago)
Author:
Nicklas Nordborg
Message:

References #222: Utility for transfering file between BASE and a GenePattern? server

Now uses the alternate servlet mapping as implemented in http://base.thep.lu.se/ticket/1333

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/net.sf.basedb.genepattern/trunk/src/net/sf/basedb/genepattern/file/FileTransferGateway.java

    r1116 r1127  
    4949 
    5050  private final String id;
    51   private final String baseUrl;
     51  private final String downloadServletUrl;
    5252  private final Set<String> uploadFiles;
    5353  private final Set<File> downloadFiles;
     
    5858  /**
    5959    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;
    6866    this.id = "gp-" + System.identityHashCode(this);
    6967    this.subDir = new DateFormatter("yyyy-MM-dd").format(new Date());
     
    149147    }
    150148    uploadFiles.add(filename);
    151     return new Parameter(gpParameterName, baseUrl + "/Download/" + downloadPath + ".servlet");
     149    return new Parameter(gpParameterName, downloadServletUrl + "/" + downloadPath);
    152150  }
    153151 
Note: See TracChangeset for help on using the changeset viewer.