package robots;

public class AllowedRule extends AbstractRule {

	public AllowedRule(String path, boolean wildcardsAllowed) {		
		super(path, wildcardsAllowed);
		
	}

	@Override
	public Boolean isAllowed(String path) {

		if("".equals(super.getPath())){
			
			return null;
			
		}
		if(!match(path)){
			
		return null;

		}
		else{
			
			return Boolean.TRUE;
		}
	}

}
@@ -12,16 +12,84 @@
 ots;%0D%0A%0D%0A
+/**%0D%0A* @author Giuseppe Giorgi %3Cgiuseppe.giorgi1987@gmail.com%3E%0D%0A*/%0D%0A
 public c
@@ -462,8 +462,10 @@
 %0A%09%7D%0D%0A%0D%0A%7D
+%0D%0A

Update AllowedRule.java