public interface ResourceDefinition
Modifier and Type | Interface and Description |
---|---|
static interface |
ResourceDefinition.PostProcessor
Resource specific result processor.
|
Modifier and Type | Method and Description |
---|---|
Collection<String> |
getCreateDirectives()
Obtain the set of create directives for the resource.
|
Collection<String> |
getDeleteDirectives()
Obtain the set of delete directives for the resource.
|
String |
getPluralName()
Obtain the plural name of the resource.
|
List<ResourceDefinition.PostProcessor> |
getPostProcessors()
Obtain any resource post processors.
|
Collection<String> |
getReadDirectives()
Obtain the set of read directives for the resource.
|
Renderer |
getRenderer(String name)
Obtain the associated renderer based on name.
|
String |
getSingularName()
Obtain the singular name of the resource.
|
Set<SubResourceDefinition> |
getSubResourceDefinitions()
Obtain a set of all child resource types.
|
Resource.Type |
getType()
Obtain the type of resource.
|
Collection<String> |
getUpdateDirectives()
Obtain the set of update directives for the resource.
|
boolean |
isCreatable()
Defines if resource is actually created on the server side during POST
operation.
|
String getPluralName()
String getSingularName()
Resource.Type getType()
Resource.Type
.Set<SubResourceDefinition> getSubResourceDefinitions()
List<ResourceDefinition.PostProcessor> getPostProcessors()
ResultPostProcessor
while post processing a result.Renderer getRenderer(String name) throws IllegalArgumentException
name
- name of the renderer to obtainIllegalArgumentException
- if name is invalid for this resourceCollection<String> getReadDirectives()
Collection<String> getCreateDirectives()
Collection<String> getUpdateDirectives()
Collection<String> getDeleteDirectives()
boolean isCreatable()
true
if resource is creatable, false
otherwiseCopyright © 2022 Apache Software Foundation. All rights reserved.