List of usage examples for java.lang Boolean toString
public String toString()
From source file:org.wso2.carbon.apimgt.hostobjects.APIProviderHostObject.java
public static String jsFunction_isApiNameExist(Context cx, Scriptable thisObj, Object[] args, Function funObj) throws APIManagementException { Boolean apiExist = false;/*from w ww . jav a 2s .c o m*/ if (args != null && isStringValues(args)) { String apiName = (String) args[0]; APIProvider apiProvider = getAPIProvider(thisObj); try { apiExist = apiProvider.isApiNameExist(apiName); } catch (APIManagementException e) { handleException("Error from registry while checking the api name is already exist", e); } } else { handleException("Input api name value is null"); } return apiExist.toString(); }