public abstract class AbstractDownloaderAuthenticationConfig extends java.lang.Object implements DownloaderAuthenticationConfig
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
providerName |
protected java.lang.String |
serviceUrl |
CONFIG_PROVIDERNAME_NAME, CONFIG_SERVICEURL_NAME, PERSISTENT_DEFINITION_NAME
Modifier | Constructor and Description |
---|---|
protected |
AbstractDownloaderAuthenticationConfig(java.lang.String providerName) |
protected |
AbstractDownloaderAuthenticationConfig(java.lang.String providerName,
DownloaderAuthenticationFactory factory,
java.lang.String serviceUrl) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
Creates a copy of the object.
|
void |
fromJson(JsonObject json) |
DownloaderAuthenticationFactory |
getFactory() |
java.lang.String |
getKey() |
java.lang.String |
getProviderName() |
java.lang.String |
getServiceUrl() |
boolean |
isConfigurable() |
boolean |
isFilled() |
void |
loadFromState(PersistentState state)
Set the state of the object from the state passed as parameter.
|
boolean |
requestAuthenticationConfig() |
void |
saveToState(PersistentState state)
Saves the internal state of the object on the provided
PersistentState object.
|
static void |
selfRegister() |
JsonObjectBuilder |
toJsonBuilder() |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
create, createAuthenticationConfig
cloneQuietly, cloneQuietly
toJson, toJson, toJsonBuilder
protected final java.lang.String providerName
protected java.lang.String serviceUrl
protected AbstractDownloaderAuthenticationConfig(java.lang.String providerName, DownloaderAuthenticationFactory factory, java.lang.String serviceUrl)
protected AbstractDownloaderAuthenticationConfig(java.lang.String providerName)
public java.lang.String getProviderName()
getProviderName
in interface DownloaderAuthenticationConfig
public DownloaderAuthenticationFactory getFactory()
getFactory
in interface DownloaderAuthenticationConfig
public java.lang.String getServiceUrl()
getServiceUrl
in interface DownloaderAuthenticationConfig
public boolean isConfigurable()
isConfigurable
in interface DownloaderAuthenticationConfig
public boolean isFilled()
isFilled
in interface DownloaderAuthenticationConfig
public boolean requestAuthenticationConfig()
requestAuthenticationConfig
in interface DownloaderAuthenticationConfig
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
Cloneable
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
- if the instance of the object cannot
be cloned. As this is extending Cloneable
so its sure
it implements it, so this exception may be used for problems on specific
object instances.Object#clone()}.
public java.lang.String getKey()
getKey
in interface DownloaderAuthenticationConfig
public void fromJson(JsonObject json)
fromJson
in interface SupportFromJson
public JsonObjectBuilder toJsonBuilder()
toJsonBuilder
in interface SupportToJson
public static void selfRegister()
public void saveToState(PersistentState state) throws PersistenceException
Persistent
saveToState
in interface Persistent
PersistenceException
public void loadFromState(PersistentState state) throws PersistenceException
Persistent
loadFromState
in interface Persistent
PersistenceException