Class RootResourceInformation

java.lang.Object
org.springframework.data.rest.webmvc.RootResourceInformation

public class RootResourceInformation extends Object
Meta-information about the root repository resource.
Author:
Jon Brisbin, Oliver Gierke
  • Constructor Details

    • RootResourceInformation

      public RootResourceInformation(ResourceMetadata metadata, org.springframework.data.mapping.PersistentEntity<?,?> entity, org.springframework.data.repository.support.RepositoryInvoker invoker)
  • Method Details

    • getDomainType

      public Class<?> getDomainType()
    • getResourceMetadata

      public ResourceMetadata getResourceMetadata()
    • getSearchMappings

      public SearchResourceMappings getSearchMappings()
    • getInvoker

      public org.springframework.data.repository.support.RepositoryInvoker getInvoker()
    • getPersistentEntity

      public org.springframework.data.mapping.PersistentEntity<?,?> getPersistentEntity()
    • getSupportedMethods

      public SupportedHttpMethods getSupportedMethods()
    • verifySupportedMethod

      public void verifySupportedMethod(org.springframework.http.HttpMethod httpMethod, ResourceType resourceType) throws org.springframework.web.HttpRequestMethodNotSupportedException, ResourceNotFoundException
      Verifies that the given HttpMethod is supported for the given ResourceType.
      Parameters:
      httpMethod - must not be null.
      resourceType - must not be null.
      Throws:
      ResourceNotFoundException - if the repository is not exported at all.
      org.springframework.web.HttpRequestMethodNotSupportedException - if the ResourceType does not support the given HttpMethod. Will contain all supported methods as indicators for clients.
    • verifySupportedMethod

      public void verifySupportedMethod(org.springframework.http.HttpMethod httpMethod, org.springframework.data.mapping.PersistentProperty<?> property) throws org.springframework.web.HttpRequestMethodNotSupportedException
      Verifies that the given HttpMethod is supported for the given PersistentProperty.
      Parameters:
      httpMethod - must not be null.
      property - must not be null.
      Throws:
      ResourceNotFoundException - if the repository is not exported at all.
      org.springframework.web.HttpRequestMethodNotSupportedException - if the PersistentProperty does not support the given HttpMethod. Will contain all supported methods as indicators for clients.
    • verifyPutForCreation

      public void verifyPutForCreation() throws org.springframework.web.HttpRequestMethodNotSupportedException
      Throws:
      org.springframework.web.HttpRequestMethodNotSupportedException