Refine search
WebService annotation = cls.getAnnotation(WebService.class); if (annotation != null) { wsAnnotations.add(annotation); if (cls.isInterface()) { cls = null; if (StringUtils.isEmpty(sei)) { seiFromWsAnnotation = false; sei = getWSInterfaceName(implementorClass); if (!StringUtils.isEmpty(sei)) { try { seiClass = ClassLoaderUtils.loadClass(sei, implementorClass); && (!StringUtils.isEmpty(seiAnnotation.portName()) || !StringUtils.isEmpty(seiAnnotation.serviceName()) || !StringUtils.isEmpty(seiAnnotation.endpointInterface()))) { String expString = BUNDLE.getString("ILLEGAL_ATTRIBUTE_IN_SEI_ANNOTATION_EXC"); throw new WebServiceException(expString); wsAnnotations.add(seiAnnotation);
protected List<String> getRecipientsAddresses(Event event, GeneralNotifierType generalNotifierType, ExpressionVariables variables, UserType defaultRecipient, String transportName, Transport transport, Task task, OperationResult result) { List<String> addresses = new ArrayList<>(); if (!generalNotifierType.getRecipientExpression().isEmpty()) { for (ExpressionType expressionType : generalNotifierType.getRecipientExpression()) { List<String> r = evaluateExpressionChecked(expressionType, variables, "notification recipient", task, result); if (r != null) { addresses.addAll(r); } } if (addresses.isEmpty()) { getLogger().info("Notification for " + event + " will not be sent, because there are no known recipients."); } } else if (defaultRecipient == null) { getLogger().info("Unknown default recipient, notification will not be sent."); } else { String address = transport.getDefaultRecipientAddress(defaultRecipient); if (StringUtils.isEmpty(address)) { getLogger().info("Notification to " + defaultRecipient.getName() + " will not be sent, because the user has no address (mail, phone number, etc) for transport '" + transportName + "' set."); } else { addresses.add(address); } } return addresses; }
SpringResourceFactory resourceFactory = new SpringResourceFactory(beanName); resourceFactory.setApplicationContext(applicationContext); resourceProviders.add(resourceFactory); } else if (isValidComponent(beanName, Provider.class, componentScanPackagesSet, componentScanBeansSet)) { jaxrsProviders.add(getProviderBean(beanName)); } else if (isValidComponent(beanName, org.apache.cxf.annotations.Provider.class, componentScanPackagesSet, componentScanBeansSet)) { if (!StringUtils.isEmpty(classesScanPackages)) { try { final Map< Class< ? extends Annotation >, Collection< Class< ? > > > classes =
private static List<String> parseAcceptEnc(String acceptEnc) { if (StringUtils.isEmpty(acceptEnc)) { return Collections.emptyList(); } List<String> list = new LinkedList<>(); String[] values = acceptEnc.split(","); for (String value : values) { String[] pair = value.trim().split(";"); // ignore encoding qualifiers if any for now list.add(pair[0]); } return list; }
public static List<String> parseParamValue(String paramValue, String defaultValue) throws IOException { List<String> scopeList = new ArrayList<>(); if (!StringUtils.isEmpty(paramValue)) { StringTokenizer tokenizer = new StringTokenizer(paramValue, " "); while (tokenizer.hasMoreTokens()) { String token = tokenizer.nextToken(); scopeList.add(token); } } if (defaultValue != null && !scopeList.contains(defaultValue)) { scopeList.add(defaultValue); } return scopeList; }
public static List<String> getFound(String contents, String regex) { if (isEmpty(regex) || isEmpty(contents)) { return null; } List<String> results = new ArrayList<String>(); Pattern pattern = Pattern.compile(regex, Pattern.UNICODE_CASE); Matcher matcher = pattern.matcher(contents); while (matcher.find()) { if (matcher.groupCount() > 0) { results.add(matcher.group(1)); } else { results.add(matcher.group()); } } return results; }
private static void addList(List<String> destList, String key, boolean keyAsOwnElement, List<String> sourceList) { if (sourceList == null) { return; } for (String value : sourceList) { if (keyAsOwnElement) { destList.add(key); destList.add(value); } else { // Maven makes empty tags into null // instead of empty strings. so replace null by "" String v = key + ((value == null) ? "" : value); if (!StringUtils.isEmpty(v)) { destList.add(v); } } } } private static void addEqualsArray(List<String> destList,
public static List<String> getFound(String contents, String regex) { if (isEmpty(regex) || isEmpty(contents)) { return null; } List<String> results = new ArrayList<String>(); Pattern pattern = Pattern.compile(regex, Pattern.UNICODE_CASE); Matcher matcher = pattern.matcher(contents); while (matcher.find()) { if (matcher.groupCount() > 0) { results.add(matcher.group(1)); } else { results.add(matcher.group()); } } return results; }
public static List<String> getFound(String contents, String regex) { if (isEmpty(regex) || isEmpty(contents)) { return null; } List<String> results = new ArrayList<String>(); Pattern pattern = Pattern.compile(regex, Pattern.UNICODE_CASE); Matcher matcher = pattern.matcher(contents); while (matcher.find()) { if (matcher.groupCount() > 0) { results.add(matcher.group(1)); } else { results.add(matcher.group()); } } return results; }
private static void addList(List<String> destList, String key, boolean keyAsOwnElement, List<String> sourceList) { if (sourceList == null) { return; } for (String value : sourceList) { if (keyAsOwnElement) { destList.add(key); destList.add(value); } else { // Maven makes empty tags into null // instead of empty strings. so replace null by "" String v = key + ((value == null) ? "" : value); if (!StringUtils.isEmpty(v)) { destList.add(v); } } } } private static void addEqualsArray(List<String> destList,
private static List<String> parseAcceptEnc(String acceptEnc) { if (StringUtils.isEmpty(acceptEnc)) { return Collections.emptyList(); } List<String> list = new LinkedList<String>(); String[] values = StringUtils.split(acceptEnc, ","); for (String value : values) { String[] pair = StringUtils.split(value.trim(), ";"); // ignore encoding qualifiers if any for now list.add(pair[0]); } return list; }
protected void addArgs(List<String> list) { if (!StringUtils.isEmpty(encoding)) { list.add("-encoding"); list.add(encoding); if (!StringUtils.isEmpty(target)) { list.add("-target"); list.add(target); list.add("-source"); if (!StringUtils.isEmpty(outputDir)) { list.add("-d"); list.add(outputDir); if (StringUtils.isEmpty(classPath)) { String javaClasspath = SystemPropertyAction.getProperty("java.class.path"); boolean classpathSetted = javaClasspath != null ? true : false;
public List<MessagePartInfo> getOrderedParts(List<String> order) { if (StringUtils.isEmpty(order)) { return getMessageParts(); } List<MessagePartInfo> orderedParts = new ArrayList<>(); Map<QName, MessagePartInfo> partsMap = getMessagePartsMap(); for (String part : order) { QName qname = getMessagePartQName(part); orderedParts.add(partsMap.get(qname)); } return orderedParts; }
protected void addArgs(List<String> list) { if (!StringUtils.isEmpty(encoding)) { list.add("-encoding"); list.add(encoding); if (!StringUtils.isEmpty(target)) { list.add("-target"); list.add(target); list.add("-source"); if (!StringUtils.isEmpty(outputDir)) { list.add("-d"); list.add(outputDir); if (StringUtils.isEmpty(classPath)) { String javaClasspath = SystemPropertyAction.getProperty("java.class.path"); boolean classpathSetted = javaClasspath != null ? true : false;
public List<MessagePartInfo> getOrderedParts(List<String> order) { if (StringUtils.isEmpty(order)) { return getMessageParts(); } List<MessagePartInfo> orderedParts = new ArrayList<>(); Map<QName, MessagePartInfo> partsMap = getMessagePartsMap(); for (String part : order) { QName qname = getMessagePartQName(part); orderedParts.add(partsMap.get(qname)); } return orderedParts; }