List of usage examples for org.apache.commons.lang ArrayUtils EMPTY_STRING_ARRAY
String[] EMPTY_STRING_ARRAY
To view the source code for org.apache.commons.lang ArrayUtils EMPTY_STRING_ARRAY.
Click Source Link
String
array. From source file:org.wso2.carbon.identity.core.model.SAMLSSOServiceProviderDO.java
/** * @return the requestedAudiences/* www . j ava 2s . co m*/ */ public String[] getRequestedAudiences() { if (requestedAudiences != null) { return requestedAudiences.clone(); } else { return ArrayUtils.EMPTY_STRING_ARRAY; } }
From source file:org.wso2.carbon.identity.core.model.SAMLSSOServiceProviderDO.java
/** * @return the requestedRecipients/* ww w . j a va 2 s . co m*/ */ public String[] getRequestedRecipients() { if (requestedRecipients != null) { return requestedRecipients.clone(); } else { return ArrayUtils.EMPTY_STRING_ARRAY; } }
From source file:org.wso2.carbon.identity.core.model.SAMLSSOServiceProviderDO.java
public String[] getAssertionConsumerUrls() { if (assertionConsumerUrls != null) { return assertionConsumerUrls.clone(); } else {//from ww w . j a v a2s . com return ArrayUtils.EMPTY_STRING_ARRAY; } }
From source file:org.wso2.carbon.identity.core.model.SAMLSSOServiceProviderDO.java
public String[] getIdpInitSLOReturnToURLs() { if (idpInitSLOReturnToURLs != null) { return idpInitSLOReturnToURLs.clone(); } else {//from w w w. j ava 2 s. c o m return ArrayUtils.EMPTY_STRING_ARRAY; } }
From source file:org.wso2.carbon.identity.mgt.endpoint.IdentityManagementEndpointUtil.java
/** * Cast provided Object to a String[]/*from ww w.java 2 s.com*/ * * @param value Object * @return String[] */ public static String[] getStringArray(Object value) { if (value != null && value instanceof String[]) { return (String[]) value; } return ArrayUtils.EMPTY_STRING_ARRAY; }
From source file:org.wso2.carbon.identity.sso.saml.dto.SAMLSSOServiceProviderDTO.java
public String[] getIdpInitSLOReturnToURLs() { if (idpInitSLOReturnToURLs == null) { return ArrayUtils.EMPTY_STRING_ARRAY; }//from w w w. j a v a 2s .c o m return idpInitSLOReturnToURLs.clone(); }
From source file:ru.medved.json.wssoap.WebServiceSamplerGui.java
/** * The method uses WSDLHelper to get the information from the WSDL. Since * the logic for getting the description is isolated to this method, we can * easily replace it with a different WSDL driver later on. * // ww w . j a v a2 s .c o m * @param url * @param silent * @return array of web methods */ public String[] browseWSDL(String url, boolean silent) { try { // We get the AuthManager and pass it to the WSDLHelper // once the sampler is updated to Axis, all of this stuff // should not be necessary. Now I just need to find the // time and motivation to do it. WebServiceSampler sampler = (WebServiceSampler) this.createTestElement(); AuthManager manager = sampler.getAuthManager(); HELPER = new WSDLHelper(url, manager); HELPER.parse(); return HELPER.getWebMethods(); } catch (Exception exception) { if (!silent) { JOptionPane.showConfirmDialog(this, JMeterUtils.getResString("wsdl_helper_error") // $NON-NLS-1$ + "\n" + exception, // $NON-NLS-1$ JMeterUtils.getResString("warning"), // $NON-NLS-1$ JOptionPane.DEFAULT_OPTION, JOptionPane.ERROR_MESSAGE); } return ArrayUtils.EMPTY_STRING_ARRAY; } }
From source file:stc.app.bean.lang.ReflectionToStringBuilder.java
/** * Converts the given Collection into an array of Strings. The returned array does not contain * <code>null</code> entries. Note that {@link Arrays#sort(Object[])} will throw an * {@link NullPointerException} if an array element is <code>null</code>. * /* www. j a va2 s .co m*/ * @param collection The collection to convert * @return A new array of Strings. */ static String[] toNoNullStringArray(Collection collection) { if (collection == null) { return ArrayUtils.EMPTY_STRING_ARRAY; } return toNoNullStringArray(collection.toArray()); }
From source file:stc.app.bean.lang.ReflectionToStringBuilder.java
/** * Returns a new array of Strings without null elements. Internal method used to normalize exclude * lists (arrays and collections). Note that {@link Arrays#sort(Object[])} will throw an * {@link NullPointerException} if an array element is <code>null</code>. * /*from w ww. ja v a2 s.c o m*/ * @param array The array to check * @return The given array or a new array without null. */ static String[] toNoNullStringArray(Object[] array) { ArrayList list = new ArrayList(array.length); for (int i = 0; i < array.length; i++) { Object e = array[i]; if (e != null) { list.add(e.toString()); } } return (String[]) list.toArray(ArrayUtils.EMPTY_STRING_ARRAY); }