public class HttpClientDownloaderAuthentication extends Object implements DownloaderAuthentication
| Modifier and Type | Field and Description |
|---|---|
static String |
PERSISTENT_DESCRIPTION |
static String |
PERSISTENT_NAME |
| Constructor and Description |
|---|
HttpClientDownloaderAuthentication() |
HttpClientDownloaderAuthentication(String host,
int port,
String user,
String password) |
| Modifier and Type | Method and Description |
|---|---|
String |
getHost() |
String |
getPassword() |
int |
getPort() |
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(String host) |
void |
setPassword(String password) |
void |
setPort(int port) |
void |
setUser(String user) |
public static final String PERSISTENT_NAME
public static final String PERSISTENT_DESCRIPTION
public HttpClientDownloaderAuthentication(String host, int port, String user, String password)
public HttpClientDownloaderAuthentication()
public String getHost()
getHost in interface DownloaderAuthenticationpublic String getUser()
getUser in interface DownloaderAuthenticationpublic int getPort()
getPort in interface DownloaderAuthenticationpublic void setPort(int port)
setPort in interface DownloaderAuthenticationpublic String getPassword()
getPassword in interface DownloaderAuthenticationpublic void setHost(String host)
setHost in interface DownloaderAuthenticationpublic void setUser(String user)
setUser in interface DownloaderAuthenticationpublic void setPassword(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()