| 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 |
protected Router |
router |
| Constructor and Description |
|---|
AbstractProxy() |
AbstractProxy(RuleKey ruleKey) |
| Modifier and Type | Method and Description |
|---|---|
AbstractProxy |
clone() |
String |
getErrorState() |
List<Interceptor> |
getInterceptors() |
RuleKey |
getKey() |
String |
getName() |
protected abstract AbstractProxy |
getNewInstance() |
SSLContext |
getSslInboundContext() |
SSLParser |
getSslInboundParser() |
SSLProvider |
getSslOutboundContext() |
RuleStatisticCollector |
getStatisticCollector() |
void |
init() |
void |
init(Router router)
Called after parsing is complete and this has been added to the object tree (whose root is Router).
|
boolean |
isActive() |
boolean |
isBlockRequest() |
boolean |
isBlockResponse() |
boolean |
isTargetAdjustHostHeader() |
void |
setBlockRequest(boolean blockStatus) |
void |
setBlockResponse(boolean blockStatus) |
void |
setInterceptors(List<Interceptor> interceptors) |
void |
setKey(RuleKey ruleKey) |
void |
setName(String name) |
protected void |
setSslInboundContext(SSLContext sslInboundContext) |
void |
setSslInboundParser(SSLParser sslInboundParser) |
String |
toString() |
protected String name
protected RuleKey key
protected volatile boolean blockRequest
protected volatile boolean blockResponse
protected List<Interceptor> interceptors
protected String localHost
protected Router router
public AbstractProxy()
public AbstractProxy(RuleKey ruleKey)
public 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 setName(String name)
public void setBlockRequest(boolean blockStatus)
setBlockRequest in interface Rulepublic void setBlockResponse(boolean blockStatus)
setBlockResponse in interface Ruleprotected abstract AbstractProxy getNewInstance()
public SSLParser getSslInboundParser()
public void setSslInboundParser(SSLParser sslInboundParser)
public SSLContext getSslInboundContext()
getSslInboundContext in interface Ruleprotected void setSslInboundContext(SSLContext sslInboundContext)
public SSLProvider getSslOutboundContext()
getSslOutboundContext in interface Rulepublic final void init(Router router) throws Exception
public boolean isTargetAdjustHostHeader()
isTargetAdjustHostHeader in interface Rulepublic String getErrorState()
getErrorState in interface Rulepublic AbstractProxy clone() throws CloneNotSupportedException
clone in interface Ruleclone in class ObjectCloneNotSupportedExceptionpublic RuleStatisticCollector getStatisticCollector()
getStatisticCollector in interface RuleCopyright © 2022. All Rights Reserved.