Class OsgiBundleResource

java.lang.Object
com.atlassian.confluence.functest.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)
  • Method Details

    • getBundles

      @GET @Path("bundles") public javax.ws.rs.core.Response getBundles()
    • getBundle

      @GET @Path("bundles/{bundleId}") public javax.ws.rs.core.Response getBundle(@PathParam("bundleId") int bundleId)