Lines Matching defs:protocol
203 * Check the protocol used in the systemId against allowed protocols
207 * @param accessAny keyword to indicate allowing any protocol
208 * @return the name of the protocol if rejected, null otherwise
216 String protocol;
218 protocol = "file";
221 protocol = url.getProtocol();
222 if (protocol.equalsIgnoreCase("jar")) {
224 protocol = path.substring(0, path.indexOf(":"));
225 } else if (protocol.equalsIgnoreCase("jrt")) {
227 protocol = "file";
231 if (isProtocolAllowed(protocol, allowedProtocols)) {
235 return protocol;
240 * Check if the protocol is in the allowed list of protocols. The check
243 * @param protocol a protocol
245 * @return true if the protocol is in the list
247 private static boolean isProtocolAllowed(String protocol, String allowedProtocols) {
254 if (t.equalsIgnoreCase(protocol)) {