Class OpenAPIInterceptor
java.lang.Object
com.predic8.membrane.core.interceptor.AbstractInterceptor
com.predic8.membrane.core.openapi.serviceproxy.OpenAPIInterceptor
- All Implemented Interfaces:
Interceptor
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.predic8.membrane.core.interceptor.Interceptor
Interceptor.Flow -
Field Summary
FieldsFields inherited from class com.predic8.membrane.core.interceptor.AbstractInterceptor
name, router -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuildSwaggerUrl(io.swagger.v3.oas.models.OpenAPI api) protected StringhandleRequest(Exchange exc) handleResponse(Exchange exc) protected voidsetDestinationsFromOpenAPI(OpenAPIRecord rec, Exchange exc) static booleanshouldValidate(io.swagger.v3.oas.models.OpenAPI api, String direction) booleanvalidationDetails(io.swagger.v3.oas.models.OpenAPI api) Methods inherited from class com.predic8.membrane.core.interceptor.AbstractInterceptor
getFlow, getHelpId, getMessage, getRouter, getRule, handleAbort, init, init, setDisplayName, setFlow
-
Field Details
-
OPENAPI_RECORD
- See Also:
-
apiProxy
-
-
Constructor Details
-
OpenAPIInterceptor
-
-
Method Details
-
getApiProxy
-
handleRequest
- Specified by:
handleRequestin interfaceInterceptor- Overrides:
handleRequestin classAbstractInterceptor- Throws:
Exception
-
handleResponse
- Specified by:
handleResponsein interfaceInterceptor- Overrides:
handleResponsein classAbstractInterceptor- Throws:
Exception
-
getMatchingBasePath
-
validationDetails
public boolean validationDetails(io.swagger.v3.oas.models.OpenAPI api) -
shouldValidate
-
setDestinationsFromOpenAPI
-
getDisplayName
- Specified by:
getDisplayNamein interfaceInterceptor- Overrides:
getDisplayNamein classAbstractInterceptor
-
getShortDescription
- Specified by:
getShortDescriptionin interfaceInterceptor- Overrides:
getShortDescriptionin classAbstractInterceptor
-
getLongDescription
- Specified by:
getLongDescriptionin interfaceInterceptor- Overrides:
getLongDescriptionin classAbstractInterceptor
-
buildSwaggerUrl
-