Interface BaseEntrypointConnector<C extends BaseExecutionContext>
- All Known Subinterfaces:
EntrypointConnector,HttpEntrypointConnector,TcpEntrypointConnector
- All Known Implementing Classes:
EntrypointAsyncConnector,EntrypointSyncConnector,HttpEntrypointAsyncConnector,HttpEntrypointSyncConnector
Interface describing Entrypoint Connector which could be implemented to deal with new protocol specification
- Author:
- GraviteeSource Team
-
Method Summary
Modifier and TypeMethodDescriptionio.reactivex.rxjava3.core.CompletablehandleRequest(C ctx) Handle incoming request by doing or adding anything to the context anything required by the entrypoint.io.reactivex.rxjava3.core.CompletablehandleResponse(C ctx) Handle outgoing response by doing or adding anything to the context anything required by the entrypoint.intReturns the number of criteria used in {matches(C).booleanCheck if incoming request matches entrypoint criteria.Returns theListenerTypesupported by this entrypoint.Methods inherited from interface io.gravitee.gateway.reactive.api.connector.Connector
id, supportedApi, supportedModesMethods inherited from interface io.gravitee.common.component.LifecycleComponent
lifecycleState, postStart, postStop, preStart, preStop, start, stop
-
Method Details
-
supportedListenerType
ListenerType supportedListenerType()Returns theListenerTypesupported by this entrypoint. It will be used to filter available entrypoint when creating a new API- Returns:
ListenerTypesupported by this entrypoint.
-
matchCriteriaCount
int matchCriteriaCount()Returns the number of criteria used in {matches(C). This number is used to sort compatible entrypoint from a request in the descending order.- Returns:
- Number of criteria used in {
matches(C)
-
matches
Check if incoming request matches entrypoint criteria.- Returns:
trueif the incoming request matches all criteria,falseotherwise
-
handleRequest
Handle incoming request by doing or adding anything to the context anything required by the entrypoint.- Returns:
Completable
-
handleResponse
Handle outgoing response by doing or adding anything to the context anything required by the entrypoint.- Returns:
Completable
-