Statistics
| Revision:

gvsig-projects-pool / org.gvsig.online / trunk / org.gvsig.online / org.gvsig.online.lib / org.gvsig.online.lib.api / src / main / java / org / gvsig / online / lib / api / OnlineDownloader.java @ 9515

History | View | Annotate | Download (897 Bytes)

1
/*
2
 * To change this license header, choose License Headers in Project Properties.
3
 * To change this template file, choose Tools | Templates
4
 * and open the template in the editor.
5
 */
6
package org.gvsig.online.lib.api;
7

    
8
import java.io.File;
9
import java.io.IOException;
10
import java.net.URL;
11
import java.util.Map;
12

    
13
/**
14
 *
15
 * @author jjdelcerro
16
 */
17
public interface OnlineDownloader {
18
//    public interface OnlineAuthorizationRequester {
19
//        public boolean requestAuthorization();
20
//        public String getAuthorization();
21
//    }
22
//    
23
//    public void setAuthorizationRequester(OnlineAuthorizationRequester authorizationRequester);
24
    
25
    public File get(URL url) throws IOException;
26

    
27
    public File post_json(URL url, String json) throws IOException;
28
    
29
    public File post_form(URL url, Map<String,String>data) throws IOException;
30
    
31
//    public String getAuthorization();
32

    
33
}