Class OsgiBundleResource

java.lang.Object
com.atlassian.confluence.test.publicapi.rest.OsgiBundleResource

@Consumes("application/json") @Produces("application/json") @Path("/osgi") public class OsgiBundleResource extends Object
A REST resource which exposes information about the OSGi bundles currently installed.

This is a more test-focussed alternative to the REST resources provided by UPM, but comes from the same source, i.e. the BundleContext.

  • Constructor Details

    • OsgiBundleResource

      @Inject public OsgiBundleResource(org.osgi.framework.BundleContext bundleContext, com.atlassian.plugin.osgi.container.PackageScannerConfiguration packageScannerConfig)
  • Method Details

    • getBundles

      @GET @Path("bundles") public javax.ws.rs.core.Response getBundles(@QueryParam("treatDeprecatedPackagesAsPublic") @Nullable Boolean treatDeprecatedPackagesAsPublic)
    • loadClass

      @GET @Path("class") public javax.ws.rs.core.Response loadClass(@QueryParam("className") String className)