95 if (
"*".equals(
host)) {
97 }
else if (
host.startsWith(
"*.")) {
98 this.
host = Pattern.compile(
"([a-z0-9.-]*\\.)?" +
regexFromPattern(
host.substring(2),
false), Pattern.CASE_INSENSITIVE);
102 if (
port == null ||
"*".equals(
port)) {
105 this.
port = Integer.parseInt(
port, 10);
107 if (
path == null ||
"/*".equals(
path)) {
112 }
catch (NumberFormatException e) {
113 throw new MalformedURLException(
"Port must be a number");
Pattern path
Definition: URLPatternList.java:86
Pattern host
Definition: URLPatternList.java:84
Pattern scheme
Definition: URLPatternList.java:83
String regexFromPattern(String pattern, boolean allowWildcards)
Definition: URLPatternList.java:129
Integer port
Definition: URLPatternList.java:85