APISonar


com.geccocrawler.gecco.spider.render.RenderType.JSON

> com > geccocrawler > gecco > spider > render > RenderType > JSON
com APIs geccocrawler APIs gecco APIs spider APIs render APIs RenderType APIs JSON APIs

Example 1
private SpiderBean spiderBeanRender(Object src, Class genericClass, HttpRequest request) {
		HttpResponse subResponse = HttpResponse.createSimple(src.toString());
		Render render = null;
		if(ReflectUtils.haveSuperType(genericClass, JsonBean.class)) {
			render = RenderContext.getRender(RenderType.JSON);
		} else {
			render = RenderContext.getRender(RenderType.HTML);
		}
		SpiderBean subBean = render.inject(genericClass, request, subResponse);
		return subBean;
	}