class AddRedirectFromRootServerToScope 
extends PredicatedDecideRule {

    private static final long serialVersionUID = 3L;

    private static final Logger LOGGER =
	        Logger.getLogger(AddRedirectFromRootServerToScope.class.getName());
    private static final String SLASH = "/";

    public AddRedirectFromRootServerToScope() {
    }

    @Override
    protected boolean evaluate(CrawlURI uri) {<FILL_FUNCTION_BODY>}


}

        UURI via = uri.getVia();
        if (via == null) {
            return false;
        }
        try {
            String chost = uri.getUURI().getHostBasename();
            if (chost == null) {
                return false;
            }
            
            String viaHost = via.getHostBasename();
            if (viaHost == null) {
                return false;
            }
            
            if (chost.equals(viaHost) && uri.isLocation() 
                    && via.getPath().equals(SLASH)) {
                uri.setSeed(true);
                LOGGER.info("Adding " + uri + " to seeds via " + via);
                return true;
            }
        } catch (URIException e) {
            e.printStackTrace();
        }
        return false;
    
<methods>public void <init>() ,public org.archive.modules.deciderules.DecideResult getDecision() ,public org.archive.modules.deciderules.DecideResult onlyDecision(org.archive.modules.CrawlURI) ,public void setDecision(org.archive.modules.deciderules.DecideResult) <variables>private static final long serialVersionUID