public class RootResourceInformation extends Object
| Constructor and Description |
|---|
RootResourceInformation(ResourceMetadata metadata,
org.springframework.data.mapping.PersistentEntity<?,?> entity,
org.springframework.data.repository.support.RepositoryInvoker invoker) |
| Modifier and Type | Method and Description |
|---|---|
Class<?> |
getDomainType() |
org.springframework.data.repository.support.RepositoryInvoker |
getInvoker() |
org.springframework.data.mapping.PersistentEntity<?,?> |
getPersistentEntity() |
ResourceMetadata |
getResourceMetadata() |
SearchResourceMappings |
getSearchMappings() |
SupportedHttpMethods |
getSupportedMethods() |
void |
verifySupportedMethod(org.springframework.http.HttpMethod httpMethod,
org.springframework.data.mapping.PersistentProperty<?> property)
Verifies that the given
HttpMethod is supported for the given PersistentProperty. |
void |
verifySupportedMethod(org.springframework.http.HttpMethod httpMethod,
ResourceType resourceType)
Verifies that the given
HttpMethod is supported for the given ResourceType. |
public RootResourceInformation(ResourceMetadata metadata, org.springframework.data.mapping.PersistentEntity<?,?> entity, org.springframework.data.repository.support.RepositoryInvoker invoker)
public Class<?> getDomainType()
public ResourceMetadata getResourceMetadata()
public SearchResourceMappings getSearchMappings()
public org.springframework.data.repository.support.RepositoryInvoker getInvoker()
public org.springframework.data.mapping.PersistentEntity<?,?> getPersistentEntity()
public SupportedHttpMethods getSupportedMethods()
public void verifySupportedMethod(org.springframework.http.HttpMethod httpMethod,
ResourceType resourceType)
throws org.springframework.web.HttpRequestMethodNotSupportedException,
ResourceNotFoundException
HttpMethod is supported for the given ResourceType.httpMethod - must not be null.resourceType - must not be null.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.public void verifySupportedMethod(org.springframework.http.HttpMethod httpMethod,
org.springframework.data.mapping.PersistentProperty<?> property)
throws org.springframework.web.HttpRequestMethodNotSupportedException
HttpMethod is supported for the given PersistentProperty.httpMethod - must not be null.property - must not be null.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.Copyright © 2011–2017 Pivotal Software, Inc.. All rights reserved.