public Collection<String> stormpathFilterServletNames() { return Strings.commaDelimitedListToSet(stormpathFilterServletNames); }
public Collection<String> stormpathFilterUrlPatterns() { return Strings.commaDelimitedListToSet(stormpathFilterUrlPatterns); }
public Set<String> stormpathRequestApplicationAttributeNames() { Set<String> set = new LinkedHashSet<>(); set.addAll(Strings.commaDelimitedListToSet(requestApplicationAttributeNames)); set.add(Application.class.getName()); return set; }
public Set<String> stormpathRequestClientAttributeNames() { Set<String> set = new LinkedHashSet<>(); set.addAll(Strings.commaDelimitedListToSet(requestClientAttributeNames)); //we always want the client to be available as an attribute by it's own class name: set.add(Client.class.getName()); return set; }
public Set<String> stormpathRequestClientAttributeNames() { Set<String> set = new LinkedHashSet<>(); set.addAll(Strings.commaDelimitedListToSet(requestClientAttributeNames)); //we always want the client to be available as an attribute by it's own class name: set.add(Client.class.getName()); return set; }
public Set<String> stormpathRequestApplicationAttributeNames() { Set<String> set = new LinkedHashSet<>(); set.addAll(Strings.commaDelimitedListToSet(requestApplicationAttributeNames)); set.add(Application.class.getName()); return set; }
public Set<DispatcherType> stormpathFilterDispatcherTypes() { Set<String> names = Strings.commaDelimitedListToSet(stormpathFilterDispatcherTypes); if (Collections.isEmpty(names)) { return java.util.Collections.emptySet(); } Set<DispatcherType> types = new LinkedHashSet<>(names.size()); for (String name : names) { types.add(DispatcherType.valueOf(name)); } return types; }
@Override public List<String> getValues(String key, List<String> defaultValues) { String value = getValue(key); if (Strings.hasText(value)) { return new ArrayList<>(Strings.commaDelimitedListToSet(value)); } return defaultValues; } }
@Override public List<String> getValues(String key, List<String> defaultValues) { String value = getValue(key); if (Strings.hasText(value)) { return new ArrayList<>(Strings.commaDelimitedListToSet(value)); } return defaultValues; } }