Interface ActionDescription
A description of an action registered in a model.
-
Method Summary
Modifier and TypeMethodDescriptionGet the descriptions of the fields the action is expecting.getName()Get the name of the action.The resource path the action can be called against.getTitle()Get the title of the action.getType()Get the content type of the request that the action expects.getVerb()Get the HTTP verb the action is registered against.booleanGet whether the action is considered the default.
-
Method Details
-
getVerb
Get the HTTP verb the action is registered against.- Returns:
- The HTTP verb
-
getName
Get the name of the action.- Returns:
- The name of the action.
-
getTitle
Get the title of the action.- Returns:
- The title of the action.
-
getType
Get the content type of the request that the action expects.- Returns:
- The content type of the request.
-
isDefault
boolean isDefault()Get whether the action is considered the default. Default actions are used to handle requests that cannot be matched to a more specific non-default action registered in the model. There can be one default action per HTTP verb.- Returns:
- Whether the action is a default action.
-
getResourcePath
The resource path the action can be called against.- Returns:
- The resource path.
-
getFields
Get the descriptions of the fields the action is expecting.- Returns:
- The descriptions of the fields.
-