Class FrameworkBundleResource

    • Constructor Detail

      • FrameworkBundleResource

        public FrameworkBundleResource​(org.osgi.framework.BundleContext bundleContext)
    • Method Detail

      • bundle

        @GET
        @Produces({"application/org.osgi.bundle+json","application/org.osgi.bundle+xml"})
        @Path("framework/bundle/{bundleid}{ext:(\\.json|\\.xml)*}")
        public javax.ws.rs.core.Response bundle​(@PathParam("bundleid")
                                                long bundleid,
                                                @PathParam("ext")
                                                String ext)
      • bundle

        @PUT
        @Consumes("text/plain")
        @Produces({"application/org.osgi.bundle+json","application/org.osgi.bundle+xml"})
        @Path("framework/bundle/{bundleid}{ext:(\\.json|\\.xml)*}")
        public javax.ws.rs.core.Response bundle​(String location,
                                                @PathParam("bundleid")
                                                long bundleid,
                                                @PathParam("ext")
                                                String ext,
                                                @HeaderParam("Content-Type")
                                                javax.ws.rs.core.MediaType contentType)
      • putBundle

        @PUT
        @Consumes("application/vnd.osgi.bundle")
        @Produces({"application/org.osgi.bundle+json","application/org.osgi.bundle+xml"})
        @Path("framework/bundle/{bundleid}{ext:(\\.json|\\.xml)*}")
        public javax.ws.rs.core.Response putBundle​(InputStream inputStream,
                                                   @PathParam("bundleid")
                                                   long bundleid,
                                                   @PathParam("ext")
                                                   String ext,
                                                   @HeaderParam("Content-Type")
                                                   javax.ws.rs.core.MediaType contentType)
      • deleteBundle

        @DELETE
        @Produces({"application/org.osgi.bundle+json","application/org.osgi.bundle+xml"})
        @Path("framework/bundle/{bundleid}{ext:(\\.json|\\.xml)*}")
        public javax.ws.rs.core.Response deleteBundle​(@PathParam("bundleid")
                                                      long bundleid,
                                                      @PathParam("ext")
                                                      String ext,
                                                      @HeaderParam("Content-Type")
                                                      javax.ws.rs.core.MediaType contentType)