@Path(value="/portal/apis/data-provider") public class DataProviderAPI extends Object implements org.wso2.msf4j.Microservice
| Constructor and Description |
|---|
DataProviderAPI() |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
dataProviderConfig(String providerName) |
javax.ws.rs.core.Response |
dataProviderList() |
protected void |
setCarbonTransport(DataProvider dataProvider) |
protected void |
start(org.osgi.framework.BundleContext bundleContext)
This is the activation method of ServiceComponent.
|
protected void |
stop()
This is the deactivation method of ServiceComponent.
|
protected void |
unsetCarbonTransport(DataProvider dataProvider) |
javax.ws.rs.core.Response |
validateProviderConfig(com.google.gson.JsonElement dataProviderConfig,
String providerName) |
protected void start(org.osgi.framework.BundleContext bundleContext)
throws Exception
bundleContext - the bundle context instance of this bundle.Exception - this will be thrown if an issue occurs while executing the activate methodprotected void stop()
throws Exception
Exception - this will be thrown if an issue occurs while executing the de-activate method@GET @Path(value="/list") @Produces(value="application/json") public javax.ws.rs.core.Response dataProviderList()
@GET
@Path(value="/{providerName}/config")
@Produces(value="application/json")
public javax.ws.rs.core.Response dataProviderConfig(@PathParam(value="providerName")
String providerName)
@POST
@Path(value="/{providerName}/validate")
@Produces(value="application/json")
@Consumes(value="application/json")
public javax.ws.rs.core.Response validateProviderConfig(com.google.gson.JsonElement dataProviderConfig,
@PathParam(value="providerName")
String providerName)
protected void setCarbonTransport(DataProvider dataProvider)
protected void unsetCarbonTransport(DataProvider dataProvider)
Copyright © 2018 WSO2. All rights reserved.