Class AbstractInterceptor
java.lang.Object
com.predic8.membrane.core.interceptor.AbstractInterceptor
- All Implemented Interfaces:
Interceptor
- Direct Known Subclasses:
AbstractFlowInterceptor,AbstractInterceptorWithSession,AbstractScriptInterceptor,AbstractSetterInterceptor,AccessControlInterceptor,AccessLogInterceptor,AcmeHttpChallengeInterceptor,AdminConsoleInterceptor,ApiDocsInterceptor,ApiKeyCheckerInterceptor,ApiKeysInterceptor,ApiManagementInterceptor,ApisJsonInterceptor,AuthHead2BodyInterceptor,BasicAuthenticationInterceptor,BeautifierInterceptor,CacheInterceptor,ClamAntiVirusInterceptor,ClusterNotificationInterceptor,CountInterceptor,DecoupledEndpointRewriterInterceptor,DispatchingInterceptor,DynamicAdminPageInterceptor,ExchangeStoreInterceptor,FlowInitiator,FormValidationInterceptor,GateKeeperClientInterceptor,GraphQLProtectionInterceptor,GreaseInterceptor,GroovyTemplateInterceptor,HeaderFilterInterceptor,HTTP2XMLInterceptor,HTTPClientInterceptor,IndexInterceptor,Json2XmlInterceptor,JsonPointerExtractorInterceptor,JsonProtectionInterceptor,JwtAuthInterceptor,KubernetesValidationInterceptor,LimitInterceptor,LoadBalancingInterceptor,LoggingContextInterceptor,LoginInterceptor,LogInterceptor,MessageAnalyser,MethodOverrideInterceptor,NtlmInterceptor,OAuth2AuthorizationServerInterceptor,OAuth2PermissionCheckerInterceptor,OAuth2ResourceInterceptor,OAuth2TokenValidatorInterceptor,OpenAPIInterceptor,OpenAPIPublisherInterceptor,OpenTelemetryInterceptor,PaddingHeaderInterceptor,PrometheusInterceptor,RateLimitInterceptor,RegExReplaceInterceptor,RegistrationInterceptor,RelocatingInterceptor,ReplaceInterceptor,RequireAuth,REST2SOAPInterceptor,RESTInterceptor,ReturnInterceptor,ReverseProxyingInterceptor,RewriteInterceptor,RouterIpResolverInterceptor,RuleMatchingInterceptor,SampleSoapServiceInterceptor,ShadowingInterceptor,ShutdownInterceptor,SOAP2RESTInterceptor,SoapOperationExtractor,SOAPStackTraceFilterInterceptor,SPDYInterceptor,SpringInterceptor,StaticInterceptor,StatisticsCSVInterceptor,StatisticsJDBCInterceptor,StatisticsProvider,STOMPClient,SwaggerApiKeyRequirer,SwaggerRewriterInterceptor,TCPInterceptor,TestServiceInterceptor,ThrottleInterceptor,URLNormalizerInterceptor,UserFeatureInterceptor,ValidatorInterceptor,WebServerInterceptor,WebSocketInterceptor,WsaEndpointRewriterInterceptor,WSDLPublisherInterceptor,XenAuthenticationInterceptor,Xml2JsonInterceptor,XMLContentFilterInterceptor,XmlPathExtractorInterceptor,XMLProtectionInterceptor,XPathCBRInterceptor,XSLTInterceptor
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.predic8.membrane.core.interceptor.Interceptor
Interceptor.Flow -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetFlow()final Stringstatic MessagegetMessage(Exchange exc, Interceptor.Flow flow) <T extends Rule>
TgetRule()voidhandleAbort(Exchange exchange) Called when anyInterceptor.handleRequest(Exchange)orInterceptor.handleResponse(Exchange)later in the chain returnedOutcome.ABORTor threw an exception.handleRequest(Exchange exc) handleResponse(Exchange exc) voidinit()Called after parsing is complete and this has been added to the object tree (whose root is Router).voidvoidsetDisplayName(String name) voidsetFlow(EnumSet<Interceptor.Flow> flow)
-
Field Details
-
name
-
router
-
-
Constructor Details
-
AbstractInterceptor
public AbstractInterceptor()
-
-
Method Details
-
handleRequest
- Specified by:
handleRequestin interfaceInterceptor- Throws:
Exception
-
handleResponse
- Specified by:
handleResponsein interfaceInterceptor- Throws:
Exception
-
handleAbort
Description copied from interface:InterceptorCalled when anyInterceptor.handleRequest(Exchange)orInterceptor.handleResponse(Exchange)later in the chain returnedOutcome.ABORTor threw an exception.handleAbort is called in the reverse order of the chain (as handleResponse is).
- Specified by:
handleAbortin interfaceInterceptor
-
getDisplayName
- Specified by:
getDisplayNamein interfaceInterceptor
-
setDisplayName
- Specified by:
setDisplayNamein interfaceInterceptor
-
setFlow
- Specified by:
setFlowin interfaceInterceptor
-
getFlow
- Specified by:
getFlowin interfaceInterceptor
-
getShortDescription
- Specified by:
getShortDescriptionin interfaceInterceptor
-
getLongDescription
- Specified by:
getLongDescriptionin interfaceInterceptor
-
getHelpId
- Specified by:
getHelpIdin interfaceInterceptor- Returns:
- "accessControl" if https://membrane-soa.org/service-proxy-doc/current/configuration/reference/accessControl.htm is the documentation page for this interceptor, or null if there is no such page.
-
init
Called after parsing is complete and this has been added to the object tree (whose root is Router).- Throws:
Exception
-
init
- Specified by:
initin interfaceInterceptor- Throws:
Exception
-
getRule
-
getRouter
- Specified by:
getRouterin interfaceInterceptor
-
getMessage
-