All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.owasp.security.logging.mdc.IPlugin Maven / Gradle / Ivy

Go to download

The OWASP Security Logging project provides developers and ops personnel with APIs for logging security-related events.

There is a newer version: 1.1.7
Show newest version
package org.owasp.security.logging.mdc;

import javax.servlet.FilterConfig;
import javax.servlet.http.HttpServletRequest;

/**
 * This interface defines a plugin to the MDC filter. Applications can implement 
 * this interface to add functionality to the MDCFilter. For example, an implementing
 * class might provide custom behavior for determining an authenticated username. 
 * 
 * @author August Detlefsen [[email protected]]
 */
public interface IPlugin {
    
    /**
     * Initialize the plugin and load any required resources.
     * 
     * @param config The filter configuration to initialize the plugin
     */
    public void init(FilterConfig config);
    
    /**
     * Execute the plugin's action and place information into the diagnostic context.
     * 
     * @param request The HTTP request to execute this plugin for
     */
    public void execute(HttpServletRequest request);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy