Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Build fmprod (assumes you have OODT sources checked out)
    No Format
    cd webapp/fmprod
    mvn clean package
    
  2. Deploy fmprod (cas-product-VERSION.war)
  3. Download the product with an HTTP request (GET or POST)
    • To get a single product, use the "productID" query parameter.
      No Format
      curl 'http://webappMachine/fmprod/data?productID=< your product id >'
      
    • To get a dataset (products of a certain type) as a zip file, use the "typeID" query parameter.
      No Format
      curl 'http://webappMachine/fmprod/dataset?typeID=< your product type id >'
      
    • The filename is sent to to requesting client in the server header. It's possible to force wget and curl to use this information to name the file. To download a product and to figure out the product name from the server header information use one of the following commands:
      No Format
      
      curl --remote-name --remote-header-name http://webappMachine/fmprod/data?productID=< your product id >
      wget --content-disposition http://webappMachine/fmprod/data?productID=< your product id >
      
  4. The previous download step can be wrapped in a "FileStager" task. Subsequent tasks can now operate on the downloaded local file.

...