You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
common-smartgears/src/main/java/org/gcube/smartgears/extensions/ApplicationExtension.java

46 lines
1.0 KiB
Java

package org.gcube.smartgears.extensions;
import java.util.Set;
import jakarta.servlet.Servlet;
import org.gcube.smartgears.configuration.application.GCubeExclude;
import org.gcube.smartgears.context.application.ApplicationContext;
/**
* A servlet that allows remote management of the application.
*
* @author Fabio Simeoni
*
*/
public interface ApplicationExtension extends Servlet {
/**
* Initialises the extensions with the context of the application.
* @param context the application context
* @throws Exception if the extension cannot be initialised
*/
void init(ApplicationContext context) throws Exception;
void stop();
/**
* Returns the name of this extension.
* @return the name
*/
String name();
/**
* Returns the mapping of this extension.
* @return the mapping
*/
String mapping();
/**
* Returns the set of request paths that should be excluded from request management.
* @return the set of request paths that should be excluded from request management
*/
Set<GCubeExclude> excludes();
}