Spring Framework RequestMappingHandlerAdapter - 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 RequestMappingHandlerAdapter class.

This code example shows how to use the following methods:afterPropertiesSet, getReturnValueHandlers, setReturnValueHandlers
		 
	} 
	 
	@Override 
	public void afterPropertiesSet() { 
		super.afterPropertiesSet(); 
		List<HandlerMethodReturnValueHandler> handlers = new LinkedList<HandlerMethodReturnValueHandler>(); 
		handlers.add(customHandlerMethodReturnValueHandler); 
		if(super.getReturnValueHandlers() != null){ 
			handlers.addAll(super.getReturnValueHandlers().getHandlers()); 
		} 
		super.setReturnValueHandlers(handlers); 
	} 
 
} 
6
CodeRank
This code example shows how to use the following methods:
	 * Creates a new {@link ResourceProcessorInvokingHandlerAdapter} with the given {@link ResourceProcessor}s. 
	 *  
	 * @param resourcesProcessors must not be {@literal null}. 
	 */ 
	@Autowired(required = false) 
	public ResourceProcessorInvokingHandlerAdapter(List<ResourceProcessor<?>> resourcesProcessors) { 
 
		Assert.notNull(resourcesProcessors); 
		this.resourcesProcessors = resourcesProcessors; 
	} 
 
	/* 
	 * (non-Javadoc) 
	 * @see org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter#afterPropertiesSet() 
	 */ 
	@Override 
	public void afterPropertiesSet() { 
 
		super.afterPropertiesSet(); 
 
5
CodeRank
This code example shows how to use the following methods:
package com.mangofactory.swagger.dummy; 
 
import org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter; 
 
public class DummyRequestMappingHandlerAdapter extends RequestMappingHandlerAdapter { 
} 
4
CodeRank
This code example shows how to use the following methods:
	} 
	 
	@Bean 
	public RequestMappingHandlerAdapter handlerAdapter() throws Exception { 
 
		RequestMappingHandlerAdapter mapping = new RequestMappingHandlerAdapter(); 
 
		return mapping; 
 
	} 
 
} 
4
CodeRank
This code example shows how to use the following methods:setSessionAttributeStore
  @Autowired 
  //3.0.x -> 3.1.x change required - private AnnotationMethodHandlerAdapter annotationMethodHandlerAdapter; 
  private RequestMappingHandlerAdapter requestMappingHandlerAdapter;
 
  public void afterPropertiesSet() throws Exception {
    requestMappingHandlerAdapter.setSessionAttributeStore(this);
  } 
 
  /* (non-Javadoc) 
  * @see org.springframework.web.bind.support.SessionAttributeStore#storeAttribute(org.springframework.web.context.request.WebRequest, java.lang.String, java.lang.Object) 
  */ 
  public void storeAttribute(WebRequest request, String attributeName, Object attributeValue) {
    Assert.notNull(request, "WebRequest must not be null");
    Assert.notNull(attributeName, "Attribute name must not be null");
    Assert.notNull(attributeValue, "Attribute value must not be null");
 
    // look for a conversation id as a request parameter 
    String cId = getConversationIdFromRequest(request, attributeName);
 
    // create a new conversation id if it does not exist. 
2
CodeRank
See Code Examples for Spring Framework RequestMappingHandlerAdapter Methods: