55 if (urlPattern.compareTo(
"*") == 0) {
56 LOG.debug(
"Unlimited access to network resources");
59 Pattern parts = Pattern.compile(
"^((\\*|[A-Za-z-]+):(//)?)?(\\*|((\\*\\.)?[^*/:]+))?(:(\\d+))?(/.*)?");
60 Matcher m = parts.matcher(urlPattern);
62 String scheme = m.group(2);
63 String host = m.group(4);
65 if ((
"file".equals(scheme) ||
"content".equals(scheme)) && host == null) host =
"*";
66 String port = m.group(8);
67 String path = m.group(9);
76 }
catch (Exception e) {
77 LOG.debug(
"Failed to add origin " + urlPattern);
List< URLPattern > urlPatternList
Definition: URLPatternList.java:20
static final Logger LOG
Definition: URLPatternList.java:18