Class DomainClassResolver

java.lang.Object
org.springframework.data.rest.webmvc.support.DomainClassResolver

public class DomainClassResolver extends Object
Resolves a domain class from a web request. Domain class resolution is only available for web requests related to mapped and exported Repositories.
Since:
2.6
Author:
Mark Paluch, Oliver Gierke
  • Method Details

    • of

      public static DomainClassResolver of(org.springframework.data.repository.support.Repositories repositories, ResourceMappings mappings, BaseUri baseUri)
    • resolve

      public Class<?> resolve(Method method, org.springframework.web.context.request.NativeWebRequest webRequest)
      Resolves a domain class that is associated with the NativeWebRequest
      Parameters:
      method - must not be null.
      webRequest - must not be null.
      Returns:
      domain type that is associated with this request or null if no domain class can be resolved.