Package com.predic8.membrane.core.rules
Class AbstractProxy
java.lang.Object
com.predic8.membrane.core.rules.AbstractProxy
- Direct Known Subclasses:
InternalProxy,NullRule,ProxyRule,SSLableProxy
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()getKey()getName()protected abstract AbstractProxyvoidinit()final voidCalled after parsing is complete and this has been added to the object tree (whose root is Router).booleanisActive()booleanbooleanbooleanvoidsetBlockRequest(boolean blockStatus) voidsetBlockResponse(boolean blockStatus) voidsetInterceptors(List<Interceptor> interceptors) voidvoidprotected voidsetSslInboundContext(SSLContext sslInboundContext) voidsetSslInboundParser(SSLParser sslInboundParser) toString()
-
Field Details
-
name
-
key
-
blockRequest
protected volatile boolean blockRequest -
blockResponse
protected volatile boolean blockResponse -
interceptors
-
localHost
Used to determine the IP address for outgoing connections -
router
-
-
Constructor Details
-
AbstractProxy
public AbstractProxy() -
AbstractProxy
-
-
Method Details
-
toString
-
getInterceptors
- Specified by:
getInterceptorsin interfaceRule
-
setInterceptors
- Specified by:
setInterceptorsin interfaceRule
-
getName
-
getKey
-
isBlockRequest
public boolean isBlockRequest()- Specified by:
isBlockRequestin interfaceRule
-
isBlockResponse
public boolean isBlockResponse()- Specified by:
isBlockResponsein interfaceRule
-
setName
-
setKey
-
setBlockRequest
public void setBlockRequest(boolean blockStatus) - Specified by:
setBlockRequestin interfaceRule- Default
- false
- Description
- legacy attribute for usage by Membrane Monitor
-
setBlockResponse
public void setBlockResponse(boolean blockStatus) - Specified by:
setBlockResponsein interfaceRule- Default
- false
- Description
- legacy attribute for usage by Membrane Monitor
-
getNewInstance
-
getSslInboundParser
-
setSslInboundParser
- Description
- Configures the usage of inbound SSL (HTTPS).
-
getSslInboundContext
- Specified by:
getSslInboundContextin interfaceRule
-
setSslInboundContext
-
getSslOutboundContext
- Specified by:
getSslOutboundContextin interfaceRule
-
init
Called after parsing is complete and this has been added to the object tree (whose root is Router). -
init
- Throws:
Exception
-
isTargetAdjustHostHeader
public boolean isTargetAdjustHostHeader()- Specified by:
isTargetAdjustHostHeaderin interfaceRule
-
isActive
public boolean isActive() -
getErrorState
- Specified by:
getErrorStatein interfaceRule
-
clone
- Specified by:
clonein interfaceRule- Overrides:
clonein classObject- Throws:
CloneNotSupportedException
-
getStatisticCollector
- Specified by:
getStatisticCollectorin interfaceRule
-