Class APIProxy
java.lang.Object
com.predic8.membrane.core.rules.AbstractProxy
com.predic8.membrane.core.rules.SSLableProxy
com.predic8.membrane.core.rules.AbstractServiceProxy
com.predic8.membrane.core.rules.ServiceProxy
com.predic8.membrane.core.openapi.serviceproxy.APIProxy
- Description
- The api proxy extends the serviceProxy with API related functions like OpenAPI support.
- Topic
- 2. Proxies
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class com.predic8.membrane.core.rules.AbstractServiceProxy
AbstractServiceProxy.Target -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Map<String,OpenAPIRecord> protected Map<String,OpenAPIRecord> static final Stringstatic final Stringstatic final Stringprotected List<OpenAPISpec>protected ValidationStatisticsCollectorstatic final Stringstatic final Stringstatic final StringFields inherited from class com.predic8.membrane.core.rules.AbstractServiceProxy
targetFields inherited from class com.predic8.membrane.core.rules.AbstractProxy
blockRequest, blockResponse, interceptors, key, localHost, name, router -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetId()protected AbstractProxygetSpecs()getTest()voidinit()voidsetDescription(APIProxy.ApiDescription description) voidvoidsetSpecs(List<OpenAPISpec> specs) voidMethods inherited from class com.predic8.membrane.core.rules.ServiceProxy
etcdRegistryApiConfigExists, getExternalHostname, getMethod, getTarget, hasAdminConsole, setExternalHostname, setMethod, setTarget, setTargetHost, setTargetPort, setTargetURLMethods inherited from class com.predic8.membrane.core.rules.AbstractServiceProxy
getHost, getPath, getTargetHost, getTargetPort, getTargetScheme, getTargetSSL, getTargetURL, isTargetAdjustHostHeader, setHost, setPathMethods inherited from class com.predic8.membrane.core.rules.SSLableProxy
getIp, getName, getPort, getSslOutboundContext, setIp, setPort, setSslOutboundContextMethods inherited from class com.predic8.membrane.core.rules.AbstractProxy
clone, getErrorState, getInterceptors, getKey, getSslInboundContext, getSslInboundParser, getStatisticCollector, init, isActive, isBlockRequest, isBlockResponse, setBlockRequest, setBlockResponse, setInterceptors, setKey, setName, setSslInboundContext, setSslInboundParser, toString
-
Field Details
-
X_MEMBRANE_VALIDATION
- See Also:
-
X_MEMBRANE_ID
- See Also:
-
REQUESTS
- See Also:
-
RESPONSES
- See Also:
-
SECURITY
- See Also:
-
VALIDATION_DETAILS
- See Also:
-
apiRecords
-
basePaths
-
statisticCollector
-
specs
-
-
Constructor Details
-
APIProxy
public APIProxy()
-
-
Method Details
-
getNewInstance
- Overrides:
getNewInstancein classServiceProxy
-
getSpecs
-
setSpecs
- Description
- Deploys an API from an OpenAPI document.
-
init
- Overrides:
initin classServiceProxy- Throws:
Exception
-
getValidationStatisticCollector
-
getApiRecords
-
getBasePaths
-
getTest
-
setTest
-
getId
-
getDescription
-
setId
-
setDescription
-