Statistics
| Revision:

svn-gvsig-desktop / trunk / org.gvsig.desktop / org.gvsig.desktop.plugin / org.gvsig.downloader / org.gvsig.downloader.lib / org.gvsig.downloader.lib.api / src / main / java / org / gvsig / downloader / spi / AbstractDownloaderAuthenticationRequester.java @ 47828

History | View | Annotate | Download (1.02 KB)

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.downloader.spi;
7

    
8
import org.gvsig.downloader.DownloaderAuthenticationConfig;
9
import org.gvsig.downloader.DownloaderAuthenticationRequester;
10

    
11
/**
12
 *
13
 * @author jjdelcerro
14
 */
15
public abstract class AbstractDownloaderAuthenticationRequester
16
        implements DownloaderAuthenticationRequester
17
    {
18

    
19
    protected final DownloaderAuthenticationConfig config;
20

    
21
    protected AbstractDownloaderAuthenticationRequester(DownloaderAuthenticationConfig config) {
22
        this.config = config;
23
    }
24
    
25
    @Override
26
    public DownloaderAuthenticationConfig getConfig() {
27
        return this.config;
28
    }
29

    
30
    @Override
31
    public String getProviderName() {
32
        return this.config.getProviderName();
33
    }
34

    
35
    @Override
36
    public String toString() {
37
        return "(BaseURL = '"+this.config.getServiceUrl()+"')";
38
    }
39
    
40
    
41
   
42
}