Spring Framework WebContentGenerator - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Spring Framework WebContentGenerator class.

This code example shows how to use the following methods:setLocations, setResourceResolvers, setResourceTransformers, setCacheSeconds
 
	/** 
	 * Returns a {@link ResourceHttpRequestHandler} instance. 
	 */ 
	protected ResourceHttpRequestHandler getRequestHandler() {
		ResourceHttpRequestHandler handler = new ResourceHttpRequestHandler();
		if (this.resourceChainRegistration != null) {
			handler.setResourceResolvers(this.resourceChainRegistration.getResourceResolvers());
			handler.setResourceTransformers(this.resourceChainRegistration.getResourceTransformers());
		} 
		handler.setLocations(this.locations);
		if (this.cachePeriod != null) {
			handler.setCacheSeconds(this.cachePeriod);
		} 
		return handler;
	} 
 
} 
8
CodeRank
Contextual code suggestions in your IDE  Get Codota for Java
This code example shows how to use the following methods:setCacheSeconds
	 * @see #setFlowExecutor(FlowExecutor) 
	 * @see #setFlowUrlHandler(FlowUrlHandler) 
	 * @see #setAjaxHandler(AjaxHandler) 
	 * @see #afterPropertiesSet() 
	 */ 
	public FlowHandlerAdapter() { 
		// prevent caching of flow pages by default 
		setCacheSeconds(0); 
	} 
 
	/** 
	 * Returns the central service for executing flows. Required. 
	 */ 
	public FlowExecutor getFlowExecutor() { 
		return flowExecutor; 
	} 
 
	/** 
	 * Sets the central service for executing flows. Required. 
	 * @param flowExecutor 
4
CodeRank
Contextual code suggestions in your IDE  Get Codota for Java
See Code Examples for Spring Framework WebContentGenerator Methods: