Class RestClientImpl

  • All Implemented Interfaces:
    org.osgi.service.rest.client.RestClient

    public class RestClientImpl
    extends Object
    implements org.osgi.service.rest.client.RestClient
    • Constructor Detail

      • RestClientImpl

        public RestClientImpl​(javax.ws.rs.client.WebTarget webTarget)
    • Method Detail

      • getFrameworkStartLevel

        public org.osgi.framework.startlevel.dto.FrameworkStartLevelDTO getFrameworkStartLevel()
                                                                                        throws Exception
        Specified by:
        getFrameworkStartLevel in interface org.osgi.service.rest.client.RestClient
        Throws:
        Exception
      • setFrameworkStartLevel

        public void setFrameworkStartLevel​(org.osgi.framework.startlevel.dto.FrameworkStartLevelDTO startLevel)
                                    throws Exception
        Specified by:
        setFrameworkStartLevel in interface org.osgi.service.rest.client.RestClient
        Throws:
        Exception
      • getBundlePaths

        public Collection<String> getBundlePaths()
                                          throws Exception
        Specified by:
        getBundlePaths in interface org.osgi.service.rest.client.RestClient
        Throws:
        Exception
      • getBundles

        public Collection<org.osgi.framework.dto.BundleDTO> getBundles()
                                                                throws Exception
        Specified by:
        getBundles in interface org.osgi.service.rest.client.RestClient
        Throws:
        Exception
      • getBundle

        public org.osgi.framework.dto.BundleDTO getBundle​(long id)
                                                   throws Exception
        Specified by:
        getBundle in interface org.osgi.service.rest.client.RestClient
        Throws:
        Exception
      • getBundle

        public org.osgi.framework.dto.BundleDTO getBundle​(String bundlePath)
                                                   throws Exception
        Specified by:
        getBundle in interface org.osgi.service.rest.client.RestClient
        Throws:
        Exception
      • getBundleState

        public int getBundleState​(long id)
                           throws Exception
        Specified by:
        getBundleState in interface org.osgi.service.rest.client.RestClient
        Throws:
        Exception
      • getBundleState

        public int getBundleState​(String bundlePath)
                           throws Exception
        Specified by:
        getBundleState in interface org.osgi.service.rest.client.RestClient
        Throws:
        Exception
      • startBundle

        public void startBundle​(long id)
                         throws Exception
        Specified by:
        startBundle in interface org.osgi.service.rest.client.RestClient
        Throws:
        Exception
      • startBundle

        public void startBundle​(String bundlePath)
                         throws Exception
        Specified by:
        startBundle in interface org.osgi.service.rest.client.RestClient
        Throws:
        Exception
      • startBundle

        public void startBundle​(long id,
                                int options)
                         throws Exception
        Specified by:
        startBundle in interface org.osgi.service.rest.client.RestClient
        Throws:
        Exception
      • startBundle

        public void startBundle​(String bundlePath,
                                int options)
                         throws Exception
        Specified by:
        startBundle in interface org.osgi.service.rest.client.RestClient
        Throws:
        Exception
      • stopBundle

        public void stopBundle​(long id)
                        throws Exception
        Specified by:
        stopBundle in interface org.osgi.service.rest.client.RestClient
        Throws:
        Exception
      • stopBundle

        public void stopBundle​(String bundlePath)
                        throws Exception
        Specified by:
        stopBundle in interface org.osgi.service.rest.client.RestClient
        Throws:
        Exception
      • stopBundle

        public void stopBundle​(long id,
                               int options)
                        throws Exception
        Specified by:
        stopBundle in interface org.osgi.service.rest.client.RestClient
        Throws:
        Exception
      • stopBundle

        public void stopBundle​(String bundlePath,
                               int options)
                        throws Exception
        Specified by:
        stopBundle in interface org.osgi.service.rest.client.RestClient
        Throws:
        Exception
      • getBundleHeaders

        public Map<String,​String> getBundleHeaders​(long id)
                                                  throws Exception
        Specified by:
        getBundleHeaders in interface org.osgi.service.rest.client.RestClient
        Throws:
        Exception
      • getBundleHeaders

        public Map<String,​String> getBundleHeaders​(String bundlePath)
                                                  throws Exception
        Specified by:
        getBundleHeaders in interface org.osgi.service.rest.client.RestClient
        Throws:
        Exception
      • getBundleStartLevel

        public org.osgi.framework.startlevel.dto.BundleStartLevelDTO getBundleStartLevel​(long id)
                                                                                  throws Exception
        Specified by:
        getBundleStartLevel in interface org.osgi.service.rest.client.RestClient
        Throws:
        Exception
      • getBundleStartLevel

        public org.osgi.framework.startlevel.dto.BundleStartLevelDTO getBundleStartLevel​(String bundlePath)
                                                                                  throws Exception
        Specified by:
        getBundleStartLevel in interface org.osgi.service.rest.client.RestClient
        Throws:
        Exception
      • setBundleStartLevel

        public void setBundleStartLevel​(long id,
                                        int startLevel)
                                 throws Exception
        Specified by:
        setBundleStartLevel in interface org.osgi.service.rest.client.RestClient
        Throws:
        Exception
      • setBundleStartLevel

        public void setBundleStartLevel​(String bundlePath,
                                        int startLevel)
                                 throws Exception
        Specified by:
        setBundleStartLevel in interface org.osgi.service.rest.client.RestClient
        Throws:
        Exception
      • installBundle

        public org.osgi.framework.dto.BundleDTO installBundle​(String location)
                                                       throws Exception
        Specified by:
        installBundle in interface org.osgi.service.rest.client.RestClient
        Throws:
        Exception
      • installBundle

        public org.osgi.framework.dto.BundleDTO installBundle​(String location,
                                                              InputStream in)
                                                       throws Exception
        Specified by:
        installBundle in interface org.osgi.service.rest.client.RestClient
        Throws:
        Exception
      • uninstallBundle

        public org.osgi.framework.dto.BundleDTO uninstallBundle​(long id)
                                                         throws Exception
        Specified by:
        uninstallBundle in interface org.osgi.service.rest.client.RestClient
        Throws:
        Exception
      • uninstallBundle

        public org.osgi.framework.dto.BundleDTO uninstallBundle​(String bundlePath)
                                                         throws Exception
        Specified by:
        uninstallBundle in interface org.osgi.service.rest.client.RestClient
        Throws:
        Exception
      • updateBundle

        public org.osgi.framework.dto.BundleDTO updateBundle​(long id)
                                                      throws Exception
        Specified by:
        updateBundle in interface org.osgi.service.rest.client.RestClient
        Throws:
        Exception
      • updateBundle

        public org.osgi.framework.dto.BundleDTO updateBundle​(long id,
                                                             String url)
                                                      throws Exception
        Specified by:
        updateBundle in interface org.osgi.service.rest.client.RestClient
        Throws:
        Exception
      • updateBundle

        public org.osgi.framework.dto.BundleDTO updateBundle​(long id,
                                                             InputStream in)
                                                      throws Exception
        Specified by:
        updateBundle in interface org.osgi.service.rest.client.RestClient
        Throws:
        Exception
      • getServicePaths

        public Collection<String> getServicePaths()
                                           throws Exception
        Specified by:
        getServicePaths in interface org.osgi.service.rest.client.RestClient
        Throws:
        Exception
      • getServicePaths

        public Collection<String> getServicePaths​(String filter)
                                           throws Exception
        Specified by:
        getServicePaths in interface org.osgi.service.rest.client.RestClient
        Throws:
        Exception
      • getServiceReferences

        public Collection<org.osgi.framework.dto.ServiceReferenceDTO> getServiceReferences()
                                                                                    throws Exception
        Specified by:
        getServiceReferences in interface org.osgi.service.rest.client.RestClient
        Throws:
        Exception
      • getServiceReferences

        public Collection<org.osgi.framework.dto.ServiceReferenceDTO> getServiceReferences​(String filter)
                                                                                    throws Exception
        Specified by:
        getServiceReferences in interface org.osgi.service.rest.client.RestClient
        Throws:
        Exception
      • getServiceReference

        public org.osgi.framework.dto.ServiceReferenceDTO getServiceReference​(long id)
                                                                       throws Exception
        Specified by:
        getServiceReference in interface org.osgi.service.rest.client.RestClient
        Throws:
        Exception
      • getServiceReference

        public org.osgi.framework.dto.ServiceReferenceDTO getServiceReference​(String servicePath)
                                                                       throws Exception
        Specified by:
        getServiceReference in interface org.osgi.service.rest.client.RestClient
        Throws:
        Exception