1 package us.codecraft.webmagic.handler; 2 3 import us.codecraft.webmagic.Request; 4 5 /** 6 * @author code4crafer@gmail.com 7 * @since 0.5.0 8 */ 9 public interface RequestMatcher { 10 11 /** 12 * Check whether to process the page.<br><br> 13 * Please DO NOT change page status in this method. 14 * 15 * @param page page 16 * 17 * @return whether matches 18 */ 19 public boolean match(Request page); 20 21 public enum MatchOther { 22 YES, NO 23 } 24 }