Class PluginResource


  • @Path("/plugin")
    @Consumes("application/json")
    @Produces("application/json")
    public class PluginResource
    extends ConfigBaseResource
    • Constructor Summary

      Constructors 
      Constructor Description
      PluginResource()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      jakarta.ws.rs.core.Response getPlugins()
      Retrieve summaries of deployed plugins.
      jakarta.ws.rs.core.Response isPluginDeployed​(@NotNull String pluginName)
      Check whether a plugin with the given name is currently deployed.
      • Methods inherited from class io.jans.configapi.core.rest.BaseResource

        checkNotEmpty, checkNotEmpty, checkNotNull, checkNotNull, checkNotNull, checkResourceNotNull, createSearchRequest, findRootError, getBadRequestException, getBadRequestException, getBadRequestException, getHttpHeaders, getHttpRequest, getInternalServerException, getInternalServerException, getMissingAttributeError, getNotAcceptableException, getNotFoundError, getNotFoundError, getUriInfo, throwBadRequestException, throwBadRequestException, throwBadRequestException, throwInternalServerException, throwInternalServerException, throwInternalServerException, throwInternalServerException, throwMissingAttributeError, throwNotFoundException, throwNotFoundException
    • Constructor Detail

      • PluginResource

        public PluginResource()
    • Method Detail

      • getPlugins

        @GET
        public jakarta.ws.rs.core.Response getPlugins()
        Retrieve summaries of deployed plugins.

        Each returned entry contains the plugin's name and description for plugins whose implementation classes are present on the classpath.

        Returns:
        a list of PluginConf objects containing the name and description of each deployed plugin
      • isPluginDeployed

        @GET
        @Path("{pluginName}")
        public jakarta.ws.rs.core.Response isPluginDeployed​(@NotNull @PathParam("pluginName")
                                                            @NotNull String pluginName)
        Check whether a plugin with the given name is currently deployed.
        Parameters:
        pluginName - the plugin name to check; comparison is case-insensitive
        Returns:
        `true` if a plugin with the given name is deployed, `false` otherwise