public class ServiceProxy extends AbstractServiceProxy
A service proxy can be deployed on front of a Web server, Web Service or a REST resource. It conceals the server and offers the same interface as the target server to its clients.
AbstractServiceProxy.TargettargetblockRequest, blockResponse, interceptors, key, localHost, name, router| Constructor and Description |
|---|
ServiceProxy() |
ServiceProxy(ServiceProxyKey ruleKey,
String targetHost,
int targetPort) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
etcdRegistryApiConfigExists() |
String |
getExternalHostname() |
String |
getMethod() |
protected AbstractProxy |
getNewInstance() |
AbstractServiceProxy.Target |
getTarget() |
boolean |
hasAdminConsole() |
void |
init() |
void |
setExternalHostname(String externalHostname) |
void |
setMethod(String method) |
void |
setTarget(AbstractServiceProxy.Target target) |
void |
setTargetHost(String targetHost) |
void |
setTargetPort(int targetPort) |
void |
setTargetURL(String targetURL) |
getHost, getPath, getTargetHost, getTargetPort, getTargetScheme, getTargetSSL, getTargetURL, isTargetAdjustHostHeader, setHost, setPathgetIp, getName, getPort, getSslOutboundContext, setIp, setPort, setSslOutboundContextclone, getErrorState, getInterceptors, getKey, getSslInboundContext, getSslInboundParser, getStatisticCollector, init, isActive, isBlockRequest, isBlockResponse, setBlockRequest, setBlockResponse, setInterceptors, setKey, setName, setSslInboundContext, setSslInboundParser, toStringpublic ServiceProxy()
public ServiceProxy(ServiceProxyKey ruleKey, String targetHost, int targetPort)
public void init()
throws Exception
init in class AbstractServiceProxyExceptionpublic boolean hasAdminConsole()
public boolean etcdRegistryApiConfigExists()
protected AbstractProxy getNewInstance()
getNewInstance in class AbstractProxypublic String getMethod()
public void setMethod(String method)
public String getExternalHostname()
public void setExternalHostname(String externalHostname)
public AbstractServiceProxy.Target getTarget()
public void setTarget(AbstractServiceProxy.Target target)
public void setTargetHost(String targetHost)
public void setTargetPort(int targetPort)
public void setTargetURL(String targetURL)
Copyright © 2021. All Rights Reserved.