예제 #1
0
 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();
 }
예제 #2
0
 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();
 }
예제 #3
0
 private boolean matchFragment(Template input, Status status) {
   pickMatchingChildren(input.getFragment(), status);
   return status.hasCandidates();
 }
예제 #4
0
 private boolean matchScheme(Template input, Status status) {
   pickMatchingChildren(input.getScheme(), status);
   return status.hasCandidates();
 }