public class RootResourceInformation extends Object
| Constructor and Description |
|---|
RootResourceInformation(ResourceMetadata metadata,
PersistentEntity<?,?> entity,
RepositoryInvoker invoker) |
| Modifier and Type | Method and Description |
|---|---|
Class<?> |
getDomainType() |
RepositoryInvoker |
getInvoker() |
PersistentEntity<?,?> |
getPersistentEntity() |
ResourceMetadata |
getResourceMetadata() |
SearchResourceMappings |
getSearchMappings() |
SupportedHttpMethods |
getSupportedMethods() |
void |
verifyPutForCreation() |
void |
verifySupportedMethod(HttpMethod httpMethod,
PersistentProperty<?> property)
Verifies that the given
HttpMethod is supported for the given PersistentProperty. |
void |
verifySupportedMethod(HttpMethod httpMethod,
ResourceType resourceType)
Verifies that the given
HttpMethod is supported for the given ResourceType. |
public RootResourceInformation(ResourceMetadata metadata, PersistentEntity<?,?> entity, RepositoryInvoker invoker)
public Class<?> getDomainType()
public ResourceMetadata getResourceMetadata()
public SearchResourceMappings getSearchMappings()
public RepositoryInvoker getInvoker()
public PersistentEntity<?,?> getPersistentEntity()
public SupportedHttpMethods getSupportedMethods()
public void verifySupportedMethod(HttpMethod httpMethod, ResourceType resourceType) throws 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.HttpRequestMethodNotSupportedException - if the ResourceType does not support the given
HttpMethod. Will contain all supported methods as indicators for clients.public void verifySupportedMethod(HttpMethod httpMethod, PersistentProperty<?> property) throws 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.HttpRequestMethodNotSupportedException - if the PersistentProperty does not support the given
HttpMethod. Will contain all supported methods as indicators for clients.public void verifyPutForCreation()
throws HttpRequestMethodNotSupportedException
Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.