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, setRouter
doAfterParsing, getBoolean, getElementName, move2RootElementIfNeeded, parse, parseCharacters, toXml, write, writeIfNotNull
protected 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 AbstractXmlElement
Exception
protected void writeExtension(XMLStreamWriter out) throws XMLStreamException
XMLStreamException
protected void writeRule(XMLStreamWriter out) throws XMLStreamException
XMLStreamException
protected <E> void writeAttrIfTrue(XMLStreamWriter out, boolean exp, String n, E v) throws XMLStreamException
XMLStreamException
protected void parseAttributes(XMLStreamReader token)
parseAttributes
in class AbstractXmlElement
public List<Interceptor> getInterceptors()
getInterceptors
in interface Rule
public void setInterceptors(List<Interceptor> interceptors)
setInterceptors
in interface Rule
public boolean isBlockRequest()
isBlockRequest
in interface Rule
public boolean isBlockResponse()
isBlockResponse
in interface Rule
public void setBlockRequest(boolean blockStatus)
setBlockRequest
in interface Rule
public void setBlockResponse(boolean blockStatus)
setBlockResponse
in interface Rule
public String getLocalHost()
getLocalHost
in interface Rule
public void setLocalHost(String localHost)
setLocalHost
in interface Rule
public void collectStatisticsFrom(Exchange exc)
collectStatisticsFrom
in interface Rule
public Map<Integer,StatisticCollector> getStatisticsByStatusCodes()
getStatisticsByStatusCodes
in interface Rule
public Rule getDeepCopy() throws Exception
getDeepCopy
in interface Rule
Exception
public XMLStreamReader getStreamReaderFor(byte[] bytes) throws XMLStreamException
XMLStreamException
protected abstract AbstractProxy getNewInstance()
public SSLContext getSslInboundContext()
getSslInboundContext
in interface Rule
public SSLContext getSslOutboundContext()
getSslOutboundContext
in interface Rule
Copyright © 2012. All Rights Reserved.