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 DownloaderAuthentication
public String getUser()
getUser
in interface DownloaderAuthentication
public int getPort()
getPort
in interface DownloaderAuthentication
public void setPort(int port)
setPort
in interface DownloaderAuthentication
public String getPassword()
getPassword
in interface DownloaderAuthentication
public void setHost(String host)
setHost
in interface DownloaderAuthentication
public void setUser(String user)
setUser
in interface DownloaderAuthentication
public void setPassword(String password)
setPassword
in interface DownloaderAuthentication
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
public static void registerPersistence()