public class ProxySettings extends Object implements IXMLConfigurable, Serializable
Constructor and Description |
---|
ProxySettings() |
ProxySettings(String host,
int port) |
public ProxySettings()
public ProxySettings(String host, int port)
public String getProxyHost()
public ProxySettings setProxyHost(String proxyHost)
public int getProxyPort()
public ProxySettings setProxyPort(int proxyPort)
public String getProxyScheme()
public ProxySettings setProxyScheme(String proxyScheme)
public String getProxyUsername()
public ProxySettings setProxyUsername(String proxyUsername)
public String getProxyPassword()
public ProxySettings setProxyPassword(String proxyPassword)
public EncryptionKey getProxyPasswordKey()
public ProxySettings setProxyPasswordKey(EncryptionKey proxyPasswordKey)
public String getProxyRealm()
public ProxySettings setProxyRealm(String proxyRealm)
public boolean isSet()
public void copyFrom(ProxySettings another)
public org.apache.http.HttpHost createHttpHost()
HttpHost
.null
if proxy is not set.public org.apache.http.auth.AuthScope createAuthScope()
public org.apache.http.auth.Credentials createCredentials()
public org.apache.http.client.CredentialsProvider createCredentialsProvider()
protected String getXmlTag()
public void loadFromXML(Reader in) throws IOException
getXmlTag()
tag.loadFromXML
in interface IXMLConfigurable
in
- XML readerIOException
- something went wrong reading the XMLpublic void loadProxyFromXML(XMLConfiguration xml)
xml
- XML configurationpublic void saveToXML(Writer out) throws IOException
getXmlTag()
tag.saveToXML
in interface IXMLConfigurable
out
- XML writerIOException
- something went wrong writing the XMLpublic void saveProxyToXML(XMLStreamWriter out) throws IOException
out
- XML stream writerIOException
- problem saving stream to XMLCopyright © 2008–2021 Norconex Inc.. All rights reserved.