public class SwaggerProxy extends ServiceProxy
A service proxy that handles Swagger REST API calls. It includes a SwaggerRewriterInterceptor ex factory.
AbstractServiceProxy.TargettargetblockRequest, blockResponse, interceptors, key, localHost, name, router| Constructor and Description |
|---|
SwaggerProxy() |
SwaggerProxy(SwaggerProxyKey ruleKey,
String targetHost,
int targetPort) |
| Modifier and Type | Method and Description |
|---|---|
protected AbstractProxy |
getNewInstance() |
io.swagger.models.Swagger |
getSwagger() |
String |
getUrl() |
void |
init() |
boolean |
isAllowUI() |
void |
setAllowUI(boolean allowUI) |
void |
setUrl(String swaggerUrl) |
etcdRegistryApiConfigExists, getExternalHostname, getMethod, getTarget, hasAdminConsole, setExternalHostname, setMethod, setTarget, setTargetHost, setTargetPort, setTargetURLgetHost, 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 SwaggerProxy()
public SwaggerProxy(SwaggerProxyKey ruleKey, String targetHost, int targetPort)
protected AbstractProxy getNewInstance()
getNewInstance in class ServiceProxypublic void init()
throws Exception
init in class ServiceProxyExceptionpublic String getUrl()
public void setUrl(String swaggerUrl)
public boolean isAllowUI()
public void setAllowUI(boolean allowUI)
public io.swagger.models.Swagger getSwagger()
Copyright © 2019. All Rights Reserved.