Class BundleInfoRestEndpoint

java.lang.Object
org.opencastproject.kernel.bundleinfo.BundleInfoRestEndpoint
Direct Known Subclasses:
OsgiBundleInfoRestEndpoint

public abstract class BundleInfoRestEndpoint extends Object
Bundle information via REST.
  • Constructor Details

    • BundleInfoRestEndpoint

      public BundleInfoRestEndpoint()
  • Method Details

    • getDb

      protected abstract BundleInfoDb getDb()
    • activate

      public void activate(org.osgi.service.component.ComponentContext cc)
    • getVersions

      @GET @Path("bundles/list") @Produces("application/json") public javax.ws.rs.core.Response getVersions()
    • checkBundles

      @GET @Path("bundles/check") public javax.ws.rs.core.Response checkBundles(@DefaultValue("opencast") @QueryParam("prefix") List<String> prefixes)
      Return true if all bundles have the same bundle version and build number.
    • getBundleVersion

      @GET @Path("bundles/version") @Produces("application/json") public javax.ws.rs.core.Response getBundleVersion(@DefaultValue("opencast") @QueryParam("prefix") List<String> prefixes)
      Return the common version of all bundles matching the given prefix.
    • clearHost

      @DELETE @Path("bundles/host") public javax.ws.rs.core.Response clearHost(@QueryParam("host") String host)
    • fullVersionJson

      public static final Jsons.Obj fullVersionJson(BundleVersion version)
    • bundleInfoJson

      public static Jsons.Obj bundleInfoJson(BundleInfo bundle)
    • bundleInfo

      public static final Jsons.Obj bundleInfo(BundleInfo bundle)