public void stopBundle()

in integrations/rest-management/rest-management/src/main/java/org/apache/aries/jax/rs/rest/management/internal/client/RestClientImpl.java [338:363]


    public void stopBundle(long id, int options) throws Exception {
        BundleStateSchema bundleStateDTO = new BundleStateSchema();
        bundleStateDTO.state = Bundle.RESOLVED;
        bundleStateDTO.options = options;

        try (Response response = maybeThrow(
            webTarget.path(
                "framework"
            ).path(
                "bundle"
            ).path(
                "{bundleid}"
            ).path(
                "state"
            ).resolveTemplate(
                "bundleid", id
            ).request(
            ).put(
                Entity.entity(
                    bundleStateDTO,
                    APPLICATION_BUNDLESTATE_JSON_TYPE
                )
            )
        )) {
        }
    }