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() |
Collection<HttpMethod> |
getSupportedMethods(ResourceType resourcType)
Returns the supported
HttpMethods for the given ResourceType. |
boolean |
supports(HttpMethod httpMethod,
ResourceType resourceType)
Returns whether the given
HttpMethod is supported for the given ResourceType. |
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 Collection<HttpMethod> getSupportedMethods(ResourceType resourcType)
HttpMethods for the given ResourceType.resourcType - must not be null.public boolean supports(HttpMethod httpMethod, ResourceType resourceType)
HttpMethod is supported for the given ResourceType.httpMethod - must not be null.resourceType - must not be null.public void verifySupportedMethod(HttpMethod httpMethod, ResourceType resourceType) throws HttpRequestMethodNotSupportedException
HttpMethod is supported for the given ResourceType.httpMethod - must not be null.resourceType - must not be null.HttpRequestMethodNotSupportedException - if the ResourceType does not support the given
HttpMethod. Will contain all supported methods as indicators for clients.Copyright © 2011-2014-2014 Pivotal Software, Inc.. All Rights Reserved.