public class DivaHTTPClient extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
DOWN_FILE_NC |
static String |
WEB_HTTP |
| Constructor and Description |
|---|
DivaHTTPClient() |
| Modifier and Type | Method and Description |
|---|---|
static void |
downloadFileDiva(String fileid,
String destinationFile) |
static DivaAnalysisGetResponse |
getAnalysis(String id,
double len,
double stn,
double x0,
double x1,
double dx,
double y0,
double y1,
double dy,
double level)
sessionid
id from previous upload
len
correlation length (arc degrees)
stn
signal to noise ratio (non-dimensional)
x0,x1,dx
first and last longitude values and resolution of the grid
y0,y1,dy
idem for latitude
level
depth level
|
static void |
inputStreamToFile(InputStream is,
String path) |
static void |
main(String[] args) |
static String |
postFile(File file) |
static org.gcube.dataanalysis.seadatanet.DivaFilePostResponse |
uploadFile(File file) |
public static DivaAnalysisGetResponse getAnalysis(String id, double len, double stn, double x0, double x1, double dx, double y0, double y1, double dy, double level) throws Exception
Exceptionpublic static org.gcube.dataanalysis.seadatanet.DivaFilePostResponse uploadFile(File file) throws Exception, IOException, ParserConfigurationException, SAXException
public static void downloadFileDiva(String fileid, String destinationFile) throws Exception
Exceptionpublic static void inputStreamToFile(InputStream is, String path) throws FileNotFoundException, IOException
FileNotFoundExceptionIOExceptionCopyright © 2015. All Rights Reserved.