T - the plugin configuration classpublic abstract class RuleInterceptorBase<T extends PluginConfiguration> extends Object implements RuleInterceptor<T>
RuleInterceptor.| Constructor and Description |
|---|
RuleInterceptorBase() |
| Modifier and Type | Method and Description |
|---|---|
void |
configure(T pluginConfiguration)
Default implementation of
ConfigurablePlugin.configure(PluginConfiguration). |
T |
getConfiguration()
Returns the provided implementation of
PluginConfiguration |
TemplateRenderer |
getRenderer()
Accessor for injected TemplateRenderer
|
Outcome |
handleRequest(Exchange exchange)
Default implementation of
RequestInterceptor.handleRequest(Exchange) that always returns Outcome.CONTINUE. |
void |
handleResponse(Exchange exchange)
Default implementation of
ResponseInterceptor.handleResponse(Exchange) that does nothing. |
void |
setRenderer(TemplateRenderer renderer)
Allows
Inject to be used to set the TemplateRenderer. |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetErrorHandlingCallbackgetConfigurationFieldspublic void configure(T pluginConfiguration) throws javax.validation.ValidationException
ConfigurablePlugin.configure(PluginConfiguration).
Acquires configuration for use with getConfiguration() and RuleInterceptor.getErrorHandlingCallback()configure in interface ConfigurablePlugin<T extends PluginConfiguration>pluginConfiguration - The expected configuration.javax.validation.ValidationException - Does not validate.public T getConfiguration()
PluginConfigurationgetConfiguration in interface ConfigurablePlugin<T extends PluginConfiguration>public Outcome handleRequest(Exchange exchange) throws AccessException
RequestInterceptor.handleRequest(Exchange) that always returns Outcome.CONTINUE.handleRequest in interface RequestInterceptorexchange - the Exchange representing the current HTTP transactionOutcome. Outcome.CONTINUE to proceed to the next interceptor or Outcome.RETURN
to indicate processing of the HTTP transaction should not continue. PingAccess may choose to ignore this result
for unspecified reasons.AccessException - an alternative to returning an Outcome.RETURN value. The AccessException
indicates metadata that may be used to generate a HTTP response.public void handleResponse(Exchange exchange) throws AccessException
ResponseInterceptor.handleResponse(Exchange) that does nothing.handleResponse in interface ResponseInterceptorexchange - Current exchange for processing and manipulationAccessException - to indicate that a specific error response should be generated@Inject public void setRenderer(TemplateRenderer renderer)
Inject to be used to set the TemplateRenderer.renderer - the TemplateRenderer to render the error responsepublic TemplateRenderer getRenderer()
TemplateRenderer to render the error responseCopyright 2023 Ping Identity Corp. All rights reserved.