Class BundleInfoRestEndpoint
java.lang.Object
org.opencastproject.kernel.bundleinfo.BundleInfoRestEndpoint
- Direct Known Subclasses:
OsgiBundleInfoRestEndpoint
Bundle information via REST.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final org.opencastproject.util.data.Function<BundleInfo, org.opencastproject.util.Jsons.Obj> static final org.opencastproject.util.data.Function<BundleVersion, org.opencastproject.util.Jsons.Obj> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidactivate(org.osgi.service.component.ComponentContext cc) static org.opencastproject.util.Jsons.ObjbundleInfoJson(BundleInfo bundle) javax.ws.rs.core.ResponsecheckBundles(List<String> prefixes) Return true if all bundles have the same bundle version and build number.javax.ws.rs.core.Responsejavax.ws.rs.core.ResponsegetBundleVersion(List<String> prefixes) Return the common version of all bundles matching the given prefix.protected abstract BundleInfoDbgetDb()javax.ws.rs.core.Response
-
Field Details
-
fullVersionJson
public static final org.opencastproject.util.data.Function<BundleVersion,org.opencastproject.util.Jsons.Obj> fullVersionJson -
bundleInfo
public static final org.opencastproject.util.data.Function<BundleInfo,org.opencastproject.util.Jsons.Obj> bundleInfo
-
-
Constructor Details
-
BundleInfoRestEndpoint
public BundleInfoRestEndpoint()
-
-
Method Details
-
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) -
bundleInfoJson
-