idstrategy.java

来自「用来为垂直搜索引擎抓取数据的采集系统」· Java 代码 · 共 26 行

JAVA
26
字号
/*
 * *****************************************************
 * Copyright (c) 2005 IIM Lab. All  Rights Reserved.
 * Created by xuehao at 2005-10-12
 * Contact: zxuehao@mail.ustc.edu.cn
 * *****************************************************
 */

package org.indigo.pages;
/**
 * 抽象类,主要定义了抽象方法,此方法是用来处理url。
 * @author wbz
 *
 */
public abstract class IdStrategy
{
	protected String itsBeginUrl=null;
	public void setBeginUrl( String beginUrl )
	{
		itsBeginUrl = beginUrl;
        if( !itsBeginUrl.endsWith("/") )
            itsBeginUrl += "/";
	}
    public abstract String getStrategy( String id );
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?