MCPcopy Index your code
hub / github.com/apache/tomcat / parse

Method parse

java/org/apache/catalina/util/NetMaskSet.java:181–194  ·  view source on GitHub ↗

Parses a comma-separated list of IP addresses and CIDR ranges into a NetMaskSet. @param input The comma-separated string of IP addresses and CIDR ranges @return A new NetMaskSet containing the parsed entries @throws IllegalArgumentException If the input contains invalid entries

(String input)

Source from the content-addressed store, hash-verified

179 * @throws IllegalArgumentException If the input contains invalid entries
180 */
181 public static NetMaskSet parse(String input) {
182 NetMaskSet result = new NetMaskSet();
183
184 List<String> errors = result.addAll(input);
185 if (!errors.isEmpty()) {
186 StringBuilder sb = new StringBuilder();
187 for (String error : errors) {
188 sb.append(error).append("; ");
189 }
190 throw new IllegalArgumentException(sm.getString("netmaskSet.invalidNetMask", sb.toString()));
191 }
192
193 return result;
194 }
195}

Callers 15

testInternalProxiesMethod · 0.95
RemoteIpValveClass · 0.95
setInternalProxiesMethod · 0.95
setTrustedProxiesMethod · 0.95
RemoteIpFilterClass · 0.95
setInternalProxiesMethod · 0.95
setTrustedProxiesMethod · 0.95
getRolesMethod · 0.45
getDistinguishedNameMethod · 0.45
checkServerBuildAgeMethod · 0.45

Calls 5

addAllMethod · 0.95
getStringMethod · 0.65
toStringMethod · 0.65
isEmptyMethod · 0.45
appendMethod · 0.45

Tested by 3

testInternalProxiesMethod · 0.76