public int isValidLink(String link) {
		Matcher matcher =pattern.matcher(link);
		while (matcher.find()) {
			//int start =matcher.start(2);
			int end =matcher.end(2);
			String postUrl =link.substring(end).trim();
			if (postUrl.length() ==0 || postUrl.indexOf(".") <0) return SpiderConstant.CHANNELLINKTYPE;
			else {
				Matcher matcherPost =patternPost.matcher(link);
				if (matcherPost.find()) return SpiderConstant.COMMONLINKTYPE;
				else return SpiderConstant.OUTDOMAINLINKTYPE;
			}
		}
		return SpiderConstant.OUTDOMAINLINKTYPE;
	}