public class ProxyConfiguration extends AbstractConfigElement
| Modifier and Type | Field and Description |
|---|---|
static String |
ATTRIBUTE_ACTIVE |
static String |
ATTRIBUTE_AUTHENTICATION |
router| Constructor and Description |
|---|
ProxyConfiguration(Router router) |
| Modifier and Type | Method and Description |
|---|---|
String |
getCredentials()
The "Basic" authentication scheme defined in RFC 2617 does not properly define how to treat non-ASCII characters.
|
String |
getProxyHost() |
String |
getProxyPassword() |
int |
getProxyPort() |
String |
getProxyUsername() |
boolean |
isUseAuthentication() |
protected void |
parseAttributes(XMLStreamReader token) |
void |
setProxyHost(String proxyHost) |
void |
setProxyPassword(String proxyPassword) |
void |
setProxyPort(int proxyPort) |
void |
setProxyUsername(String proxyUsername) |
void |
setUseAuthentication(boolean useAuthentication) |
void |
setUseProxy(boolean useProxy) |
boolean |
useProxy() |
void |
write(XMLStreamWriter out) |
getRouter, setRouterdoAfterParsing, getBoolean, getElementName, move2RootElementIfNeeded, parse, parseCharacters, parseChildren, toXml, writeIfNotNullpublic static final String ATTRIBUTE_ACTIVE
public static final String ATTRIBUTE_AUTHENTICATION
public ProxyConfiguration(Router router)
protected void parseAttributes(XMLStreamReader token) throws Exception
parseAttributes in class AbstractXmlElementExceptionpublic void write(XMLStreamWriter out) throws XMLStreamException
write in interface XMLElementwrite in class AbstractXmlElementXMLStreamExceptionpublic String getProxyHost()
public void setProxyHost(String proxyHost)
public int getProxyPort()
public void setProxyPort(int proxyPort)
public String getProxyPassword()
public void setProxyPassword(String proxyPassword)
public boolean useProxy()
public void setUseProxy(boolean useProxy)
public String getProxyUsername()
public void setProxyUsername(String proxyUsername)
public boolean isUseAuthentication()
public void setUseAuthentication(boolean useAuthentication)
public String getCredentials()
Copyright © 2012. All Rights Reserved.