public class HttpClientDownloaderAuthentication extends java.lang.Object implements DownloaderAuthentication
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
PERSISTENT_DESCRIPTION |
static java.lang.String |
PERSISTENT_NAME |
| Constructor and Description |
|---|
HttpClientDownloaderAuthentication() |
HttpClientDownloaderAuthentication(java.lang.String host,
int port,
java.lang.String user,
java.lang.String password) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getHost() |
java.lang.String |
getPassword() |
int |
getPort() |
java.lang.String |
getUser() |
void |
loadFromState(PersistentState state)
Set the state of the object from the state passed as parameter.
|
static void |
registerPersistence() |
void |
saveToState(PersistentState state)
Saves the internal state of the object on the provided
PersistentState object.
|
void |
setHost(java.lang.String host) |
void |
setPassword(java.lang.String password) |
void |
setPort(int port) |
void |
setUser(java.lang.String user) |
public static final java.lang.String PERSISTENT_NAME
public static final java.lang.String PERSISTENT_DESCRIPTION
public HttpClientDownloaderAuthentication(java.lang.String host,
int port,
java.lang.String user,
java.lang.String password)
public HttpClientDownloaderAuthentication()
public java.lang.String getHost()
getHost in interface DownloaderAuthenticationpublic java.lang.String getUser()
getUser in interface DownloaderAuthenticationpublic int getPort()
getPort in interface DownloaderAuthenticationpublic void setPort(int port)
setPort in interface DownloaderAuthenticationpublic java.lang.String getPassword()
getPassword in interface DownloaderAuthenticationpublic void setHost(java.lang.String host)
setHost in interface DownloaderAuthenticationpublic void setUser(java.lang.String user)
setUser in interface DownloaderAuthenticationpublic void setPassword(java.lang.String password)
setPassword in interface DownloaderAuthenticationpublic void saveToState(PersistentState state) throws PersistenceException
PersistentsaveToState in interface PersistentPersistenceExceptionpublic void loadFromState(PersistentState state) throws PersistenceException
PersistentloadFromState in interface PersistentPersistenceExceptionpublic static void registerPersistence()