T - the type of PluginConfiguration for this AsyncRuleInterceptorpublic abstract class AsyncRuleInterceptorBase<T extends PluginConfiguration> extends Object implements AsyncRuleInterceptor<T>
AsyncRuleInterceptor| Constructor and Description |
|---|
AsyncRuleInterceptorBase() |
| Modifier and Type | Method and Description |
|---|---|
void |
configure(T configuration)
This method is called to provide the configuration from the UI/Administrative API.
|
T |
getConfiguration()
Retrieves the configuration provided to this ConfigurablePlugin.
|
HttpClient |
getHttpClient() |
TemplateRenderer |
getTemplateRenderer() |
CompletionStage<Void> |
handleResponse(Exchange exchange)
Invoked to allow a
AsyncRuleInterceptor to handle the response attached to the
Exchange. |
void |
setHttpClient(HttpClient httpClient)
Sets the
HttpClient for this AsyncRuleInterceptor. |
void |
setTemplateRenderer(TemplateRenderer templateRenderer) |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetErrorHandlingCallback, handleRequestgetConfigurationFieldspublic void configure(T configuration) throws javax.validation.ValidationException
ConfigurablePluginconfigure in interface ConfigurablePlugin<T extends PluginConfiguration>configuration - a PluginConfiguration implementation, configured with information from the API.javax.validation.ValidationException - An Exception that can describe errors in the configuration.public T getConfiguration()
ConfigurablePlugingetConfiguration in interface ConfigurablePlugin<T extends PluginConfiguration>public CompletionStage<Void> handleResponse(Exchange exchange)
AsyncRuleInterceptorAsyncRuleInterceptor to handle the response attached to the
Exchange.handleResponse in interface AsyncRuleInterceptor<T extends PluginConfiguration>exchange - the current Exchange being processedCompletionStage representing the asynchronous completion of the method. If this method does
not require use of a HttpClient, the logic of the method can be performed synchronously and
then return a completed CompletionStage with code like:
CompletableFuture.completedFuture(null)
public HttpClient getHttpClient()
HttpClient for this AsyncRuleInterceptor@Inject public void setHttpClient(HttpClient httpClient)
HttpClient for this AsyncRuleInterceptor. This method will be invoked appropriately by
PingAccess due to the presence of the Inject annotation.httpClient - the HttpClientpublic TemplateRenderer getTemplateRenderer()
TemplateRenderer for this AsyncRuleInterceptor@Inject public void setTemplateRenderer(TemplateRenderer templateRenderer)
Copyright 2023 Ping Identity Corp. All rights reserved.