Package org.wso2.carbon.ndatasource.ui
Class NDataSourceHelper
- java.lang.Object
-
- org.wso2.carbon.ndatasource.ui.NDataSourceHelper
-
public class NDataSourceHelper extends Object
-
-
Constructor Summary
Constructors Constructor Description NDataSourceHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.wso2.carbon.ndatasource.ui.stub.core.services.xsd.WSDataSourceMetaInfo
createWSDataSourceMetaInfo(javax.servlet.http.HttpServletRequest request, NDataSourceAdminServiceClient client)
static String
elementToString(Element element)
static Map<String,String>
getAllDataSources(org.wso2.carbon.ndatasource.ui.stub.core.services.xsd.WSDataSourceInfo[] allDataSourcesInfo)
static String
getRDBMSEngine(String jdbcUrl)
Returns the RDBMS engine name by analyzing the JDBC URL.static String
prettifyXML(String xmlContent)
Prettify a given XML stringstatic Element
stringToElement(String xml)
static DSXMLConfiguration
unMarshal(String datasourceType, String configuration)
-
-
-
Method Detail
-
createWSDataSourceMetaInfo
public static org.wso2.carbon.ndatasource.ui.stub.core.services.xsd.WSDataSourceMetaInfo createWSDataSourceMetaInfo(javax.servlet.http.HttpServletRequest request, NDataSourceAdminServiceClient client) throws RemoteException, org.wso2.carbon.ndatasource.common.DataSourceException, org.wso2.carbon.ndatasource.ui.stub.NDataSourceAdminDataSourceException
- Throws:
RemoteException
org.wso2.carbon.ndatasource.common.DataSourceException
org.wso2.carbon.ndatasource.ui.stub.NDataSourceAdminDataSourceException
-
getAllDataSources
public static Map<String,String> getAllDataSources(org.wso2.carbon.ndatasource.ui.stub.core.services.xsd.WSDataSourceInfo[] allDataSourcesInfo)
-
unMarshal
public static DSXMLConfiguration unMarshal(String datasourceType, String configuration) throws org.wso2.carbon.ndatasource.ui.stub.NDataSourceAdminDataSourceException
- Throws:
org.wso2.carbon.ndatasource.ui.stub.NDataSourceAdminDataSourceException
-
-