private boolean matchPath(Template input, Status status) { Path segment; Iterator<Path> segments = input.getPath().iterator(); while (segments.hasNext() && status.hasCandidates()) { segment = segments.next(); pickMatchingChildren(segment, status); } return status.hasCandidates(); }
private boolean matchAuthority(Template input, Status status) { pickMatchingChildren(input.getUsername(), status); pickMatchingChildren(input.getPassword(), status); pickMatchingChildren(input.getHost(), status); pickMatchingChildren(input.getPort(), status); return status.hasCandidates(); }
private boolean matchFragment(Template input, Status status) { pickMatchingChildren(input.getFragment(), status); return status.hasCandidates(); }
private boolean matchScheme(Template input, Status status) { pickMatchingChildren(input.getScheme(), status); return status.hasCandidates(); }