private boolean excludedUrl(String url) { if (exclusions != null && !exclusions.isEmpty()) { for (String constraint : exclusions) { if (EndpointHelper.matchPattern(url, constraint)) { // force not matches if this was an exclusion return true; } } } return false; }
private boolean allowCreate(Class type) { String name = type.getName(); // deny takes precedence if (denyClasses != null) { String[] arr = denyClasses.split(","); for (String key : arr) { if (EndpointHelper.matchPattern(name, key)) { return false; } } } // deny takes precedence if (allowClasses != null) { String[] arr = allowClasses.split(","); for (String key : arr) { if (EndpointHelper.matchPattern(name, key)) { return true; } } } // deny by default return false; } }
private String includedUrl(String url) { String candidate = null; if (inclusions != null && !inclusions.isEmpty()) { for (String constraint : inclusions.keySet()) { if (EndpointHelper.matchPattern(url, constraint)) { if (candidate == null) { candidate = constraint; } else if (constraint.length() > candidate.length()) { // we want the constraint that has the longest context-path matching as its // the most explicit for the target url candidate = constraint; } } } return candidate; } // by default if no included has been configured then everything is restricted return "*"; }
if (EndpointHelper.matchPattern(id, pattern)) { return null; if (EndpointHelper.matchPattern(id, pattern)) { answer = entry.getValue(); break; if (EndpointHelper.matchPattern(id, pattern)) { return null; if (EndpointHelper.matchPattern(id, pattern)) { answer = entry.getValue(); break; if (EndpointHelper.matchPattern(key, pattern)) { return null;
while (it.hasNext()) { String pattern = (String) it.next(); if (EndpointHelper.matchPattern(headerName, pattern)) { LOG.debug("Header {} allowed as additional header despite not being valid according to the JMS specification", headerName); value = headerValue;