Revision 47841 trunk/org.gvsig.desktop/org.gvsig.desktop.plugin/org.gvsig.downloader/org.gvsig.downloader.lib/org.gvsig.downloader.lib.impl/src/main/java/org/gvsig/downloader/lib/impl/types/httpbasic/DownloaderHTTPBasicAuthenticationConfig.java
DownloaderHTTPBasicAuthenticationConfig.java | ||
---|---|---|
9 | 9 |
import org.gvsig.downloader.DownloaderAuthenticationRequester; |
10 | 10 |
import org.gvsig.downloader.DownloaderCredentials; |
11 | 11 |
import org.gvsig.downloader.DownloaderManager; |
12 |
import static org.gvsig.downloader.lib.impl.types.httpbasic.DownloaderHTTPBasicAuthenticationFactory.HTTPBASIC_AUTHENTICATION_NAME; |
|
12 | 13 |
import org.gvsig.downloader.spi.AbstractDownloaderAuthenticationConfig; |
14 |
import org.gvsig.json.JsonObjectBuilder; |
|
13 | 15 |
|
14 | 16 |
|
15 | 17 |
/** |
... | ... | |
21 | 23 |
implements DownloaderAuthenticationConfig |
22 | 24 |
{ |
23 | 25 |
|
26 |
/** |
|
27 |
* Constructor necesario para la persistencia |
|
28 |
*/ |
|
29 |
public DownloaderHTTPBasicAuthenticationConfig() { |
|
30 |
this(null, null); |
|
31 |
} |
|
32 |
|
|
24 | 33 |
public DownloaderHTTPBasicAuthenticationConfig(DownloaderHTTPBasicAuthenticationFactory factory, String baseUrl) { |
25 |
super(factory, baseUrl); |
|
34 |
super(HTTPBASIC_AUTHENTICATION_NAME, factory, baseUrl);
|
|
26 | 35 |
} |
27 | 36 |
|
28 | 37 |
@Override |
... | ... | |
51 | 60 |
return null; |
52 | 61 |
} |
53 | 62 |
|
63 |
@Override |
|
64 |
public JsonObjectBuilder toJsonBuilder() { |
|
65 |
JsonObjectBuilder builder = super.toJsonBuilder(); |
|
66 |
builder.add_class(this); |
|
67 |
return builder; |
|
68 |
} |
|
69 |
|
|
70 |
|
|
54 | 71 |
} |
Also available in: Unified diff