public class ProxyRepository extends java.lang.Object
Constructor and Description |
---|
ProxyRepository() |
Modifier and Type | Method and Description |
---|---|
void |
insertProxy(ProxyEntity proxy)
This function is used by LoginGUI to insert the new proxy into the
proxyRepository
|
boolean |
proxyExists(java.lang.String proxyCredential,
Domain domain)
Check if a credential with the given domain exists in this repository
|
void |
removeProxy(ProxyEntity proxy) |
ProxyEntity |
searchProxyInRepository(Domain domain)
This function is used to search proxy with the specified domain.
|
ProxyEntity |
searchProxyInRepository(java.lang.String userName,
Domain domain)
This function is used to search proxy with the specified user name and
domain.
|
public ProxyRepository()
public void insertProxy(ProxyEntity proxy)
proxy
- The new proxypublic ProxyEntity searchProxyInRepository(java.lang.String userName, Domain domain)
userName
- The specified usernamedomain
- The specified domainpublic ProxyEntity searchProxyInRepository(Domain domain)
domain
- The specified domainpublic void removeProxy(ProxyEntity proxy)
public boolean proxyExists(java.lang.String proxyCredential, Domain domain)
proxyCredential
- the string of the credentialdomaim
- the given domain