public abstract class AbstractProxy extends AbstractConfigElement implements Rule
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
blockRequest |
protected boolean |
blockResponse |
protected List<Interceptor> |
interceptors |
protected RuleKey |
key |
protected String |
localHost
Used to determine the IP address for outgoing connections
|
protected String |
name |
router| Constructor and Description |
|---|
AbstractProxy() |
AbstractProxy(RuleKey ruleKey) |
getRouter, setRouterdoAfterParsing, getBoolean, getElementName, move2RootElementIfNeeded, parse, parseCharacters, toXml, write, writeIfNotNullprotected String name
protected RuleKey key
protected volatile boolean blockRequest
protected volatile boolean blockResponse
protected List<Interceptor> interceptors
protected String localHost
public AbstractProxy()
public AbstractProxy(RuleKey ruleKey)
protected abstract void parseKeyAttributes(XMLStreamReader token)
protected void parseChildren(XMLStreamReader token, String child) throws Exception
parseChildren in class AbstractXmlElementExceptionprotected void writeExtension(XMLStreamWriter out) throws XMLStreamException
XMLStreamExceptionprotected void writeRule(XMLStreamWriter out) throws XMLStreamException
XMLStreamExceptionprotected <E> void writeAttrIfTrue(XMLStreamWriter out, boolean exp, String n, E v) throws XMLStreamException
XMLStreamExceptionprotected void parseAttributes(XMLStreamReader token)
parseAttributes in class AbstractXmlElementpublic List<Interceptor> getInterceptors()
getInterceptors in interface Rulepublic void setInterceptors(List<Interceptor> interceptors)
setInterceptors in interface Rulepublic boolean isBlockRequest()
isBlockRequest in interface Rulepublic boolean isBlockResponse()
isBlockResponse in interface Rulepublic void setBlockRequest(boolean blockStatus)
setBlockRequest in interface Rulepublic void setBlockResponse(boolean blockStatus)
setBlockResponse in interface Rulepublic String getLocalHost()
getLocalHost in interface Rulepublic void setLocalHost(String localHost)
setLocalHost in interface Rulepublic void collectStatisticsFrom(Exchange exc)
collectStatisticsFrom in interface Rulepublic Map<Integer,StatisticCollector> getStatisticsByStatusCodes()
getStatisticsByStatusCodes in interface Rulepublic Rule getDeepCopy() throws Exception
getDeepCopy in interface RuleExceptionpublic XMLStreamReader getStreamReaderFor(byte[] bytes) throws XMLStreamException
XMLStreamExceptionprotected abstract AbstractProxy getNewInstance()
public SSLContext getSslInboundContext()
getSslInboundContext in interface Rulepublic SSLContext getSslOutboundContext()
getSslOutboundContext in interface RuleCopyright © 2012. All Rights Reserved.