Class RestClientImpl
- java.lang.Object
-
- org.apache.aries.jax.rs.rest.management.internal.client.RestClientImpl
-
- All Implemented Interfaces:
org.osgi.service.rest.client.RestClient
public class RestClientImpl extends Object implements org.osgi.service.rest.client.RestClient
-
-
Constructor Summary
Constructors Constructor Description RestClientImpl(javax.ws.rs.client.WebTarget webTarget)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.osgi.framework.dto.BundleDTOgetBundle(long id)org.osgi.framework.dto.BundleDTOgetBundle(String bundlePath)Map<String,String>getBundleHeaders(long id)Map<String,String>getBundleHeaders(String bundlePath)Collection<String>getBundlePaths()Collection<org.osgi.framework.dto.BundleDTO>getBundles()org.osgi.framework.startlevel.dto.BundleStartLevelDTOgetBundleStartLevel(long id)org.osgi.framework.startlevel.dto.BundleStartLevelDTOgetBundleStartLevel(String bundlePath)intgetBundleState(long id)intgetBundleState(String bundlePath)org.osgi.framework.startlevel.dto.FrameworkStartLevelDTOgetFrameworkStartLevel()Collection<String>getServicePaths()Collection<String>getServicePaths(String filter)org.osgi.framework.dto.ServiceReferenceDTOgetServiceReference(long id)org.osgi.framework.dto.ServiceReferenceDTOgetServiceReference(String servicePath)Collection<org.osgi.framework.dto.ServiceReferenceDTO>getServiceReferences()Collection<org.osgi.framework.dto.ServiceReferenceDTO>getServiceReferences(String filter)org.osgi.framework.dto.BundleDTOinstallBundle(String location)org.osgi.framework.dto.BundleDTOinstallBundle(String location, InputStream in)voidsetBundleStartLevel(long id, int startLevel)voidsetBundleStartLevel(String bundlePath, int startLevel)voidsetFrameworkStartLevel(org.osgi.framework.startlevel.dto.FrameworkStartLevelDTO startLevel)voidstartBundle(long id)voidstartBundle(long id, int options)voidstartBundle(String bundlePath)voidstartBundle(String bundlePath, int options)voidstopBundle(long id)voidstopBundle(long id, int options)voidstopBundle(String bundlePath)voidstopBundle(String bundlePath, int options)org.osgi.framework.dto.BundleDTOuninstallBundle(long id)org.osgi.framework.dto.BundleDTOuninstallBundle(String bundlePath)org.osgi.framework.dto.BundleDTOupdateBundle(long id)org.osgi.framework.dto.BundleDTOupdateBundle(long id, InputStream in)org.osgi.framework.dto.BundleDTOupdateBundle(long id, String url)
-
-
-
Method Detail
-
getFrameworkStartLevel
public org.osgi.framework.startlevel.dto.FrameworkStartLevelDTO getFrameworkStartLevel() throws Exception- Specified by:
getFrameworkStartLevelin interfaceorg.osgi.service.rest.client.RestClient- Throws:
Exception
-
setFrameworkStartLevel
public void setFrameworkStartLevel(org.osgi.framework.startlevel.dto.FrameworkStartLevelDTO startLevel) throws Exception- Specified by:
setFrameworkStartLevelin interfaceorg.osgi.service.rest.client.RestClient- Throws:
Exception
-
getBundlePaths
public Collection<String> getBundlePaths() throws Exception
- Specified by:
getBundlePathsin interfaceorg.osgi.service.rest.client.RestClient- Throws:
Exception
-
getBundles
public Collection<org.osgi.framework.dto.BundleDTO> getBundles() throws Exception
- Specified by:
getBundlesin interfaceorg.osgi.service.rest.client.RestClient- Throws:
Exception
-
getBundle
public org.osgi.framework.dto.BundleDTO getBundle(long id) throws Exception- Specified by:
getBundlein interfaceorg.osgi.service.rest.client.RestClient- Throws:
Exception
-
getBundle
public org.osgi.framework.dto.BundleDTO getBundle(String bundlePath) throws Exception
- Specified by:
getBundlein interfaceorg.osgi.service.rest.client.RestClient- Throws:
Exception
-
getBundleState
public int getBundleState(long id) throws Exception- Specified by:
getBundleStatein interfaceorg.osgi.service.rest.client.RestClient- Throws:
Exception
-
getBundleState
public int getBundleState(String bundlePath) throws Exception
- Specified by:
getBundleStatein interfaceorg.osgi.service.rest.client.RestClient- Throws:
Exception
-
startBundle
public void startBundle(long id) throws Exception- Specified by:
startBundlein interfaceorg.osgi.service.rest.client.RestClient- Throws:
Exception
-
startBundle
public void startBundle(String bundlePath) throws Exception
- Specified by:
startBundlein interfaceorg.osgi.service.rest.client.RestClient- Throws:
Exception
-
startBundle
public void startBundle(long id, int options) throws Exception- Specified by:
startBundlein interfaceorg.osgi.service.rest.client.RestClient- Throws:
Exception
-
startBundle
public void startBundle(String bundlePath, int options) throws Exception
- Specified by:
startBundlein interfaceorg.osgi.service.rest.client.RestClient- Throws:
Exception
-
stopBundle
public void stopBundle(long id) throws Exception- Specified by:
stopBundlein interfaceorg.osgi.service.rest.client.RestClient- Throws:
Exception
-
stopBundle
public void stopBundle(String bundlePath) throws Exception
- Specified by:
stopBundlein interfaceorg.osgi.service.rest.client.RestClient- Throws:
Exception
-
stopBundle
public void stopBundle(long id, int options) throws Exception- Specified by:
stopBundlein interfaceorg.osgi.service.rest.client.RestClient- Throws:
Exception
-
stopBundle
public void stopBundle(String bundlePath, int options) throws Exception
- Specified by:
stopBundlein interfaceorg.osgi.service.rest.client.RestClient- Throws:
Exception
-
getBundleHeaders
public Map<String,String> getBundleHeaders(long id) throws Exception
- Specified by:
getBundleHeadersin interfaceorg.osgi.service.rest.client.RestClient- Throws:
Exception
-
getBundleHeaders
public Map<String,String> getBundleHeaders(String bundlePath) throws Exception
- Specified by:
getBundleHeadersin interfaceorg.osgi.service.rest.client.RestClient- Throws:
Exception
-
getBundleStartLevel
public org.osgi.framework.startlevel.dto.BundleStartLevelDTO getBundleStartLevel(long id) throws Exception- Specified by:
getBundleStartLevelin interfaceorg.osgi.service.rest.client.RestClient- Throws:
Exception
-
getBundleStartLevel
public org.osgi.framework.startlevel.dto.BundleStartLevelDTO getBundleStartLevel(String bundlePath) throws Exception
- Specified by:
getBundleStartLevelin interfaceorg.osgi.service.rest.client.RestClient- Throws:
Exception
-
setBundleStartLevel
public void setBundleStartLevel(long id, int startLevel) throws Exception- Specified by:
setBundleStartLevelin interfaceorg.osgi.service.rest.client.RestClient- Throws:
Exception
-
setBundleStartLevel
public void setBundleStartLevel(String bundlePath, int startLevel) throws Exception
- Specified by:
setBundleStartLevelin interfaceorg.osgi.service.rest.client.RestClient- Throws:
Exception
-
installBundle
public org.osgi.framework.dto.BundleDTO installBundle(String location) throws Exception
- Specified by:
installBundlein interfaceorg.osgi.service.rest.client.RestClient- Throws:
Exception
-
installBundle
public org.osgi.framework.dto.BundleDTO installBundle(String location, InputStream in) throws Exception
- Specified by:
installBundlein interfaceorg.osgi.service.rest.client.RestClient- Throws:
Exception
-
uninstallBundle
public org.osgi.framework.dto.BundleDTO uninstallBundle(long id) throws Exception- Specified by:
uninstallBundlein interfaceorg.osgi.service.rest.client.RestClient- Throws:
Exception
-
uninstallBundle
public org.osgi.framework.dto.BundleDTO uninstallBundle(String bundlePath) throws Exception
- Specified by:
uninstallBundlein interfaceorg.osgi.service.rest.client.RestClient- Throws:
Exception
-
updateBundle
public org.osgi.framework.dto.BundleDTO updateBundle(long id) throws Exception- Specified by:
updateBundlein interfaceorg.osgi.service.rest.client.RestClient- Throws:
Exception
-
updateBundle
public org.osgi.framework.dto.BundleDTO updateBundle(long id, String url) throws Exception- Specified by:
updateBundlein interfaceorg.osgi.service.rest.client.RestClient- Throws:
Exception
-
updateBundle
public org.osgi.framework.dto.BundleDTO updateBundle(long id, InputStream in) throws Exception- Specified by:
updateBundlein interfaceorg.osgi.service.rest.client.RestClient- Throws:
Exception
-
getServicePaths
public Collection<String> getServicePaths() throws Exception
- Specified by:
getServicePathsin interfaceorg.osgi.service.rest.client.RestClient- Throws:
Exception
-
getServicePaths
public Collection<String> getServicePaths(String filter) throws Exception
- Specified by:
getServicePathsin interfaceorg.osgi.service.rest.client.RestClient- Throws:
Exception
-
getServiceReferences
public Collection<org.osgi.framework.dto.ServiceReferenceDTO> getServiceReferences() throws Exception
- Specified by:
getServiceReferencesin interfaceorg.osgi.service.rest.client.RestClient- Throws:
Exception
-
getServiceReferences
public Collection<org.osgi.framework.dto.ServiceReferenceDTO> getServiceReferences(String filter) throws Exception
- Specified by:
getServiceReferencesin interfaceorg.osgi.service.rest.client.RestClient- Throws:
Exception
-
getServiceReference
public org.osgi.framework.dto.ServiceReferenceDTO getServiceReference(long id) throws Exception- Specified by:
getServiceReferencein interfaceorg.osgi.service.rest.client.RestClient- Throws:
Exception
-
-