Code example for Set

Methods: toArray

0
	} 
 
	public static String[] getMimeTypes(HttpServletRequest request) {
		Set<String> mimeTypes = _getMimeTypes(getType(request));
 
		return ArrayUtil.toStringArray(mimeTypes.toArray());
	} 
 
	public static String[] getTabs1Names(HttpServletRequest request) {
		String tabs1Names = ParamUtil.getString(request, "tabs1Names");
 
		if (Validator.isNotNull(tabs1Names)) {
			return StringUtil.split(tabs1Names);
		} 
 
		if (Validator.isNotNull(getType(request))) {
			return new String[] {_TYPE_DOCUMENTS};
		} 
 
		return new String[] {_TYPE_DOCUMENTS, _TYPE_PAGES};